{"_id":"@ballsy/lotide","_rev":"1-e4ce9a9f778bad4b7b3a64a71ce0213c","name":"@ballsy/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ballsy/lotide","version":"1.0.0","description":"@ballsy/lotide Javascript library","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Nolan-E/lotide.git"},"keywords":["lotide","javascript","library","assert","equal","lighthouse","labs"],"author":{"name":"Nolan Eckert"},"license":"ISC","bugs":{"url":"https://github.com/Nolan-E/lotide/issues"},"homepage":"https://github.com/Nolan-E/lotide#readme","devDependencies":{"chai":"^4.3.0","mocha":"^8.2.1"},"dependencies":{"lotide":"^1.0.1"},"gitHead":"a728f501779497b0115c3df327d3e58c6e5cc548","_id":"@ballsy/lotide@1.0.0","_nodeVersion":"15.3.0","_npmVersion":"7.0.14","dist":{"integrity":"sha512-Hz2NHFw2zY49MDlrrHQILMwhfr4fqsJcqSvqvkEbHYWvdBbjlP6a6YF+/Ot+P8mMqqhiPG6+TabvD81rK8aUdQ==","shasum":"483141fa160e607315c32732d4e9707ffcd7f187","tarball":"https://registry.npmjs.org/@ballsy/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":16349,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIg+7CRA9TVsSAnZWagAAZPoP/19ncbz3w3F3nMGNvgQb\n5o+jGBZMDtT3neyU9p+Ea+0zZoeEX4YvDBZjinSAzvli6xpA75UGieavlbbz\nGQSKjM/GD8PXv34OSWpHFMLbEV3Q+kEQDqobsyHVySDPaCKXa9btFpyvsPol\nSCP2QdsLuVfO70L0eR3J85g+OscUk8U9wyPpjIfw3N3RWsTGCsBomZAB9bUO\nafHtKR7/uHcAqVIgPr8pUdjgTXjD1IMCWEHXdg+XSyBvY0pmCjKk07k1BcZL\nzzw+cMzcw/0XmWt+Mi0T87TFF+RAx/tFnIjryKGJAHr43G4W4mvQFbDaMP4r\nWF6yNuy8YQbhSTNFoJP9Nh7wz+NtH0ymAcU9Tl5Jk7FXJUZPIu/nC1mUbDen\njESOVpGC5AvJhNt4S7sCey+gUJYs1NSjNuuqrth9X38zAcp6S3do3/V7wP49\n0/H1yJfuxlHoe9HYv2GsOe/kw421E0fQFYd8GPM/4Uz7i81myHMPY1F7JTpB\nmlkyv63lMydz2M6IwqQPg0U8K+MUgV/M9wAvML3L6xPITb7iMBtYj4/DGjXw\nXsLCzrn67qbIpO89PyklPq8rl6Zy81xAky0xkCAOT+kZ3mUMl/TQaLKFJ8N/\n802koWpk2FCYp2WuL9/I3MUwqBaERbuAUvea1nwOKwzW7WoMhqIFa4maucCE\ng/IU\r\n=Y1hF\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC7DX7BDdDKTsIpfji2utzHXiDdRGeK+nuop8W/YVfgIAIgIYBK/8mMU2P5nw0s6qTnLEB4Wuh4jnQ7aMvokpERasI="}]},"_npmUser":{"name":"ballsy","email":"nolan.eckert@gmail.com"},"maintainers":[{"name":"ballsy","email":"nolan.eckert@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1612844987364_0.31370752731489193"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-09T04:29:47.301Z","1.0.0":"2021-02-09T04:29:47.545Z","modified":"2022-04-04T17:39:03.680Z"},"maintainers":[{"name":"ballsy","email":"nolan.eckert@gmail.com"}],"description":"@ballsy/lotide Javascript library","homepage":"https://github.com/Nolan-E/lotide#readme","keywords":["lotide","javascript","library","assert","equal","lighthouse","labs"],"repository":{"type":"git","url":"git+https://github.com/Nolan-E/lotide.git"},"author":{"name":"Nolan Eckert"},"bugs":{"url":"https://github.com/Nolan-E/lotide/issues"},"license":"ISC","readme":"# Lotide\n\nA mini clone of the [Lodash](https://lodash.com) library.\n\n## Purpose\n\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\n\nThis project was created and published by me as part of my learnings at Lighthouse Labs. \n\n## Usage\n\n**Install Lotide:**\n\n```shell\nnpm install @ballsy/lotide\n```\n**Require Lotide:**\n\n```javascript\nconst _ = require('@ballsy/lotide');\n```\n\n**Call Lotide:**\n```javascript\nconst results = _.tail([1, 2, 3]) // => [2, 3]`\n```\n\n## Documentation\n\nThe following functions are currently implemented:\n\n* `assertArraysEqual(actual, expected)`: Strictly compares input array to the expected output array. Logs the pass or fail to the console.\n* `assertEqual(actual, expected)`: Stricly compares input primitive values to the expected output. Logs the pass or fail to the console.\n* `assertObjectsEqual(actual, expected)`: Stricly compares input primitive values to the expected output. Logs the pass or fail to the console.\n* `eqArrays(Arr1, Arr2)`: Strictly compares two input arrays. Returns true or false.\n* `eqObjects(object1, object2)`: Strictly compares two input objects. Returns true or false.\n* `countLetters(str)`: Takes and input string and returns the number of letters & characters, less the whitespace.\n* `countOnly(allItems, itemsToCount)`: Takes an input array and an object populated with the elements to be counted (if truthy) or not (if falsey).Returns an object with the results.\n* `findKey(object, callback)`: Takes an object and function to execute it. Searches for a key in the object that matches the conditions given and returns the first key name found that matches.\n* `findKeyByValue(obj, value)`: Takes an object and a value to search for. Searches for a key in the object that matches the specified value.\n* `flatten(source)`: Takes a source array with a nested array and returns a single \"level\" array. (Not recursive. Only a single level of nesting can be flattened at a time.)\n* `head(Arr)`: Takes an array and returns the element at the first index.\n* `letterPositions(str)`: Takes a string and returns an object with the index of each occurrence of each character in the string. Occurrence of whitespace is not returned.\n* `map(array, callback)`: Takes an array and a function to be executed on the array. Returns a new array with the results.\n* `middle(array)`: Takes an array and returns the value at the middle index position. Returns two values if the length of the array is even.\n* `tail(Arr)`: Takes an array and returns it without the element at the first index of the input array.\n* `takeUntil(array, callback)`: Takes an array and a function to be executed on it. Loops over the array and returns it as is until it hits the break condition of the callback.\n* `without(source, itemsToRemove)`: Takes a source array and array of unwanted items. Returns a new array with only those elements from the source array which are NOT present in the itemsToRemove array. Stricly compares the values between both arrays.\n","readmeFilename":"README.md"}