{"_id":"@egenazturemis/lotide","_rev":"1-24952e50e501ce9c6ca5f6b86538a984","name":"@egenazturemis/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@egenazturemis/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/egenazturemis/lotide.git"},"author":{"name":"Egenaz Turemis","email":"egenazturemis@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/egenazturemis/lotide/issues"},"homepage":"https://github.com/egenazturemis/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1"},"gitHead":"33802da79ec9a75b9da5f992e1bd4429105771b8","_id":"@egenazturemis/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-6vyzY7W4zSSNLHMbAUFSNWtiSh+NqB6qnEaK8SC/C9Rp7D/iaSxTLCplaMDhp0fcSfPHE5jJFjqZlHwFKII3Iw==","shasum":"9c9ae579ea657eb5ffe37e4cfe7cc5ab93bc8182","tarball":"https://registry.npmjs.org/@egenazturemis/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":16269,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzDw5CRA9TVsSAnZWagAAOlcQAJ8746Pui9pW7BmXU9wC\nxnYuMVn/LVya4Lt1GtZ6nC2dZ0aLFi5HVj9L1PGcEugl94xPPynGUSE13CR7\n/n4ZmSeNtCgPxgxCFyZcZ9P1CuStXsUGDPL67R41jLE9fe8ppE+Sk1uZwiZE\nqzhGpUnnLrRDayL7uyT/n0Hh1PJq+8McUS413uotWxio/kFgb4u4E58F+aYv\nKIA6xDcYM/SsYlV5ekmcocMe2P7ICFdPXwRBZyRWdnUxbFvrRdxgkHCA4AnG\ngUaAJ5x2DUSheLJjVP9FZnhY3oOLJhA9sCUMVv2XwQZdVM49mvIrXL7fQb8y\n5oDH0VWkgQZ6On40N/GxmlpwFL0/l58zs9N9s2E2qCrrKGmPOP2Y9SzlCd0p\nN6vBPlLuHRfxO6PDQZJHLSFlWPJMBmpp5aIL4CR5KB8Sg0tGYA9SAkabhh5o\nHZqtWlHshCcDSzm+wj43mo+8NUAXmmsOC8XXGHkgqdkmh4ILornygBXAKEk+\nmF9aiFt5nl96h/SeUPy6epCMJ4yX8RI9BVgQIMEAxvMyHNzvdXyK4g1naZ8t\nYwWHuMssd3ItzbSIlXTJ3+yqzpxKaFoZHFNRic+QuxzxteL4UCscwjmjg+ee\n8BOPwDO3XQzCJzB7JAUspHg/yiOixshZ9OSlX3+MBrT8EHy2Pxv+RhInNZCv\n5s2e\r\n=kl2g\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD0mzzusoW0msdrN5DDsBbHPRM6TXSAuw2QHsKeAJPxvQIhAKZ+IwmTLfrzfYeA6Qj27j9pLwaWM2ZqyGwbMh75vBHZ"}]},"_npmUser":{"name":"egenazturemis","email":"egenazturemis@gmail.com"},"maintainers":[{"name":"egenazturemis","email":"egenazturemis@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1607220280747_0.06740371669662548"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-06T02:04:40.705Z","1.0.0":"2020-12-06T02:04:40.913Z","modified":"2022-04-05T06:51:47.368Z"},"maintainers":[{"name":"egenazturemis","email":"egenazturemis@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/egenazturemis/lotide#readme","repository":{"type":"git","url":"git+https://github.com/egenazturemis/lotide.git"},"author":{"name":"Egenaz Turemis","email":"egenazturemis@gmail.com"},"bugs":{"url":"https://github.com/egenazturemis/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 it:**\n\n`npm install @egenazturemis/lotide`\n\n**Require it:**\n\n`const _ = require('@egenazturemis/lotide');`\n\n**Call it:**\n\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\n\n## Documentation\n\nThe following functions are currently implemented:\n\n* `head(array)`: returns the first item in the array.\n* `tail(array)`: returns the \"tail\" of an array: everything except for the first item (head) of the provided array.\n* `middle(array)`: takes in an array and returns the middle-most element(s) of the given array.\n* `without(array, itemsToRemove)`: returns a subset of a given array, removing unwanted elements.\n* `takeUntil(array, callback)`: keeps collecting items from a provided array until the callback provided returns a truthy value.\n* `map(array, callback)`: takes in an array and a callback function and returns a new array based on the results of the callback function.\n* `letterPositions(string)`: returns all the indices in a string where each character is found.\n* `findKeyByValue(object, value)`: returns the first key which contains the given value.\n* `findKey(object, callback)`: scans the given object and returns the first key for which the callback returns a truthy value\n* `eqObjects(firstObject, secondObject)`: takes in two objects and returns true or false, based on a perfect match.\n* `eqArrays(firstArray, secondArray)`: takes in two arrays and returns true or false, based on a perfect match.\n* `countOnly(allItems, itemsToCount)`: takes in an array of items and returns counts for a specific subset of those items.\n* `countLetters(string)`: takes in a a string and then return a count of each of the letters in that sentence.\n* `assertObjectsEqual(firstObjects, secondObject)`: compares the two objects it takes in and prints out a message telling us if they match or not.\n* `assertEqual(firstValue, secondValue)`: compares the two primitive data it takes in and prints out a message telling us if they match or not.\n* `assertArraysEqual(firstArray, secondArray)`: compares the two arrays it takes in and prints out a message telling us if they match or not.","readmeFilename":"README.md"}