{"_id":"@belalelmi/lotide","_rev":"2-21aed1789dbb79b62d4f4beaeb7b2430","name":"@belalelmi/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@belalelmi/lotide","version":"1.0.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/belalelmi/lotide.git"},"author":{"name":"BelalHE"},"license":"ISC","bugs":{"url":"https://github.com/belalelmi/lotide/issues"},"homepage":"https://github.com/belalelmi/lotide#readme","description":"A mini clone of the Lodash library.","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"dependencies":{"lotide":"^1.0.1"},"gitHead":"fdaa4780fc8770c34c0b8fb88e5c5e1d1e22c1d7","_id":"@belalelmi/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-T3cB+itk5LzmG4ry41G7HUZWG8LDgSXx+3IDasT0wRAu9QmoEiMgifmfvUzgt4mgJgfMzN0VxXEbBbZtX45WeA==","shasum":"99089e7459b4f7a8befa6df8c08291f69095ed2b","tarball":"https://registry.npmjs.org/@belalelmi/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":16576,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzHe3CRA9TVsSAnZWagAAauMP/0y/Bqbwyeg9KVuT1u0K\nC6eXVlr69OO+ph1KGfPsfbXjeyKNkstGmx/t1snfAxg1WyafE9jHOOC+B1UB\nRbL4Py+0iMY0qcaBfSQQ49rh5/sL7Hcf7VU9zRgfOSNqzktSOkgjX/xYGsXa\n7dINhE7Q0DAShgkVNPTApBHoYIuSQx5y3fA0oIHEAhLtwfskBMqpl6p44Egl\ngyBJudijTUn5BI24L8lIntVbXs4kDpsAe+jZ5oRwyVLAccb/8+/a+eA2E7oS\npF8DooSsQHsesaMu1Ukwl+I4xROazN5GAsof6+1+hD4Y6hP18HOQ3qaXGw6n\n+N0JyLgyXe7bzbx955NKfYnLsAD1j+Qwi2Ka0LA/zAyzdzn94ZCXKxnx+KN3\nJuHqRniu0uZTUFDmgoSm+Wy/kdDF7qaNRjSwfzBEem8yhrYZoTbLdavmK2OU\nUu9UW51F3dWj/lhDHLNp3ZGX6FAekRBCD8K2lTdmO1DWIcZFD6XHWhCEQXPL\nkoPXYXAb3rhMaAVEqT1EENBWo/J9scZQY7f1HO2bIcuTj2oR3sej7bGJ/4IZ\n6Ag0NyEElQJsLE8gaEtseU2tvF37ZEdjh3cWsHAyAaaChOy5j2sPXDvLMUJh\nYk0odKG68Hd+anH94mI2xPDAmRH9fZt+8ykKFGHOhGqHkzQmmYR/tLpnRJV4\nGYSO\r\n=Qipp\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEMK8zJWJpCUPCbOcKVhzUX4bROJqdGErVMhYDunBGoXAiBekEp/Mb0kKBelRSMHnrXpmWKRIVWin0P3dFcn6aKqdQ=="}]},"_npmUser":{"name":"belalelmi","email":"belalelmi@gmail.com"},"maintainers":[{"name":"belalelmi","email":"belalelmi@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1635826831728_0.1382345709590247"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-02T04:20:31.668Z","1.0.0":"2021-11-02T04:20:31.871Z","modified":"2022-04-04T18:19:43.799Z"},"maintainers":[{"name":"belalelmi","email":"belalelmi@gmail.com"}],"description":"A mini clone of the Lodash library.","homepage":"https://github.com/belalelmi/lotide#readme","repository":{"type":"git","url":"git+https://github.com/belalelmi/lotide.git"},"author":{"name":"BelalHE"},"bugs":{"url":"https://github.com/belalelmi/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 @belalelmi/lotide`\n\n**Require it:**\n\n`const _ = require('@belalelmi/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**: accepts an array and returns the first element\n> - **tail**: accepts an array and returns the same array, but with the first element removed\n> - **eqArrays**: accepts two arrays and returns true or false based on if they are equal\n> - **middle**: accepts an array and returns the middle element or elements as an array\n> - **letterPositions**: accepts a string and returns an object with all of the indices in the string where each character was found\n> - **eqObjects**: accepts two objects and returns true or false based on if they are equal\n> - **countLetters**: accepts a string and returns an object with key value pairs to denote each character in the string, and the number of times it occured in the string\n> - **map**: accepts an array and a function, and creates a new array with the results of calling the provided function on each element in the input array\n> - **takeUntil**: accepts an array and a callback function and runs each array element through the function, returning an array with all the items from the original array until the callback provided returns a truthy value\n> - **countOnly**: accepts an array of strings and return counts for a specific subset of those strings (the subset is identified by an object)\n> - **without**: accepts a source array and an array of items to remove, and returns a subject of the source array, removing any elements that were included in the inputted array of items to remove\n> - **findKey**: accepts an object and a callback function: scans the object and returns the first key for which the callback function returns a truthy value\n> - **findKeyByValue**: accepts an object and a value: scans the object and returns the first key which contains the given value\n","readmeFilename":"README.md"}