{"_id":"@diarrabak/lotide","_rev":"1-82eafaf3d32bb26631f80cc2660014f0","name":"@diarrabak/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@diarrabak/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/diarrabak/lotide.git"},"author":{"name":"Diarra B"},"license":"ISC","bugs":{"url":"https://github.com/diarrabak/lotide/issues"},"homepage":"https://github.com/diarrabak/lotide#readme","devDependencies":{"chai":"^4.3.4","eslint":"^8.3.0","mocha":"^9.1.3"},"dependencies":{},"gitHead":"6444bd0a90ce4012e291b3f58352792c07037c08","_id":"@diarrabak/lotide@1.0.0","_nodeVersion":"14.17.0","_npmVersion":"6.14.13","dist":{"integrity":"sha512-ikIEjDqRSm7nr1RvGYgkg+Ejb1gu6zObKll5YXaBu8dwzMR8LL8J/UrLwZuCj6PV2sXYJA9S6AOnzzFhXdrMxA==","shasum":"be8e43e23fe5834cc461108e964bd7a36d79eb8f","tarball":"https://registry.npmjs.org/@diarrabak/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":17323,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhn0WrCRA9TVsSAnZWagAACgwP/3aB57ADYnudl3nJ7ih5\nBn8j/NTEVEaMWHhx67gdrMerrG51hQisQ65lCsBLAFx8MMw1pmehHSxHpdGO\n2X3NBpakE9VAyrkSnWNhKAwSHvXqbDmiKkSVFOyoTclLApp6k7D7/p8LrUv2\n2rd0JwhhDJb5SZtgixYizkpG4ZkOntgd64vHAPa68+jv7QpdE72EAUvDTHeB\n/W/i+bnzVWOvGem6VvXqcbAu+mSk6RSt6AH4kmb1QjnHP99k/+vMom/sQFy4\nFgoOYWnQGRuU6iQkiOxdMAt3t5vvVshmWuNEonX3/E8l5ziGXXC9hbVH23VF\ngWaqmk90afmTz/jeEn0kHzFj8Z39kRmuI+rVJdyWVMm6IkNHkm8HkQ1ufZ3v\nCbfR64G7dBG7KIQmdwgFDLATlL/NZSoqV809TnEBAULdPagYHLTnAlCZlxnN\nhyL6ruBo0J9vGJuEY3Xl2oV3nkYij9WavLgGEP+e/8P9NTW3QUT3paWpds4m\nrkBQlaBFh6OSF/XXmD4Bt3w0xbpWGMzskrJX4UnQy/pUfPfKD+3mGzdpdw3h\n0tZmfTqeayYxcdSlF9/nnOws05ElPJW+37ElCtu2qNKB1cb2Bsw4wDxaSujD\nHO4qmbHtY4TOOIag22OoiocMIGo8wTnjqlbNIpbiQYsXJ9JCF8ZIrVRubhHm\nIdxK\r\n=51kl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGR/y0JKGnnym4mUzgNmNOFXpCQe47PPCVmoBS/Ka++tAiA1QwLs3CVZaWZ2MnVvn0bQLgr0W/jafD9fXTQckuMCbw=="}]},"_npmUser":{"name":"diarrabak","email":"bakary.diarra9@gmail.com"},"maintainers":[{"name":"diarrabak","email":"bakary.diarra9@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1637828010906_0.16200508860053175"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-25T08:13:30.854Z","1.0.0":"2021-11-25T08:13:31.050Z","modified":"2022-04-05T04:22:06.223Z"},"maintainers":[{"name":"diarrabak","email":"bakary.diarra9@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/diarrabak/lotide#readme","repository":{"type":"git","url":"git+https://github.com/diarrabak/lotide.git"},"author":{"name":"Diarra B"},"bugs":{"url":"https://github.com/diarrabak/lotide/issues"},"license":"ISC","readme":"# Lotide\r\n\r\nA mini clone of the [Lodash](https://lodash.com) library.\r\n\r\n## Purpose\r\n\r\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\r\n\r\nThis project was created and published by me as part of my learnings at Lighthouse Labs.\r\n\r\n## Usage\r\n\r\n**Install it:**\r\n\r\n`npm install @diarrabak/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@diarrabak/lotide');`\r\n\r\n**Call it:**\r\n\r\n`const results = _.head([1, 2, 3]) // => 1`\r\n\r\n## Documentation\r\n\r\nThe following functions are currently implemented:\r\n\r\n- `head`: returns the first element of an array\r\n- `middle`: returns the two middle element of even numbered arrays and the signle middle element of odd numbered arrays\r\n- `eqArrays`: compares two arrays \r\n- `eqObjects`:compares two objects\r\n- `countOnly`: count the occurrence of an element in an array\r\n- `map`: apply a custom callback function to an array\r\n- `takeUntil`: copy all the array element until a stop condition\r\n- `without`: removes specified elements from an array\r\n- `findKey`: returns a key of element satisfying a callback function conditions\r\n- `findKeyByValue`: returns the key of a given value from an object\r\n- `assertEqual`: compare two values\r\n- `assertArraysEqual`: assertions for arrays comparison\r\n\r\n","readmeFilename":"README.md"}