{"_id":"@afzaanhakim/lotide","_rev":"1-c6fefd74fdb688d6aef9034a31e01567","name":"@afzaanhakim/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@afzaanhakim/lotide","version":"1.0.0","description":"A clone of the lodash library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/afzaanhakim/lotide.git"},"author":{"name":"Afzaan Hakim"},"license":"ISC","bugs":{"url":"https://github.com/afzaanhakim/lotide/issues"},"homepage":"https://github.com/afzaanhakim/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^8.4.0"},"gitHead":"9bfbd0f85c14636f249e74ba58e4f3c55b289563","_id":"@afzaanhakim/lotide@1.0.0","_nodeVersion":"12.22.1","_npmVersion":"6.14.12","dist":{"integrity":"sha512-klAoPIJvSo56WDOzj12I/bO6nDSUBAwWMbp55+Nj6GdxXB3V7eoGLmzqTVhU4PCJkapdN1IAY3PuFZdIh4wDYQ==","shasum":"3c53221c7f909c98eecb492d87973eb78bc2677b","tarball":"https://registry.npmjs.org/@afzaanhakim/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":17873,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtUfNCRA9TVsSAnZWagAAtUIP/jqrSuKw+88Q9mL2rNe0\nWfrZ1hYSGgudXfYrNQH02dnVcLfMu5GIB4piw3nyY849Gzr/qYFFs/4MhC+j\nM+RnJzNU1u2J74v/5FdMS2I6zALt3tbB6UmzWqciW2pmmuoM9e24uucmywrR\ns1LBynHl3AznKuU592DCeoFuOBBWojyucZmmV4Bj4tj2NgfhKhjXj8XzbLaR\n6xYNDF0/gVoW0UV+mGpH9G4lC4KgNRkTknjMRz4VT0QEgmCIcmNbqFBZ/SJl\n7W0W+m+R/BBX/Up7VaMNE2/wGh3AWUsowwh3Y0q9w3YYFyVmDOZ/vOLe293S\n9juuQLeZVAgXrjT8mamXiOm7r0xv1QnPLJwlN4z20IXm4+nu4IR/E7SRW/rM\nBz19/GljVy3XID/uquOSSLUwIuixaozdSM6GpnDXU7wTAFBXgk/ArV/EFnMI\nogNqc9SGpPFDDul7W3UNKRgwud8OXU4i591enyK36pj3Vv68nHzzJUafxcCS\nfN/PQ00iAQx09rXbrMQkG9KlvE+9N71sdot7so9SW2RtYaMUofgDm9TeXRzn\n6eaDY7Ua5qpiaXRvJDaTZT5Rk4uPQY60yhKu7d9glBjbg8XPpT7iHUtcr7JZ\nVyaZIAvgS7+XrnRSOWYNXyXGWCksJ1M4XaPd4+xuH1fvu92Esyayp4c4vGQ6\nLwiD\r\n=8HAA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICXwoFk877uG4YWIkNOUefnyuiKe7bnB/dIiP7lYL1TfAiB7y2zUar1YVN3BeFUU7IfMmElEuKy1arWWlsufkDq0fw=="}]},"_npmUser":{"name":"afzaanhakim","email":"afzaanhakim19@gmail.com"},"maintainers":[{"name":"afzaanhakim","email":"afzaanhakim19@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1622493133273_0.5443577584259309"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-31T20:32:13.221Z","1.0.0":"2021-05-31T20:32:13.402Z","modified":"2022-04-04T11:52:54.708Z"},"maintainers":[{"name":"afzaanhakim","email":"afzaanhakim19@gmail.com"}],"description":"A clone of the lodash library","homepage":"https://github.com/afzaanhakim/lotide#readme","repository":{"type":"git","url":"git+https://github.com/afzaanhakim/lotide.git"},"author":{"name":"Afzaan Hakim"},"bugs":{"url":"https://github.com/afzaanhakim/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 @afzaanhakim/lotide`\n\n**Require it:**\n\n`const _ = require('@afzaanhakim/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* `assertArraysEqual`: a function that passes if two arrays are equal\n* `assertEqual`: a function that passes if two elements are equal\n* `assertObjectsEqual`: a function that takes in two objects and console.log's an appropriate message to the console.\n* `countLetters`: a function that counts the number of times a letter exists in a string\n* `countOnly`: a function that takes in a collection of items and return counts for a specific subset of those items\n* `eqArrays`: a function that can compare two arrays for a perfect match.\n* `eqObjects`: a function that can compare two objects\n* `findKey`: scans the object and returns the first key for which the callback returns a truthy value. If no key is found, then it will return undefined.\n* `findKeyByValue`: a function scans the object and returns the first key which contains the given value. If no key with that given value is found, then it will return undefined.\n* `head`: a function that returns the first element in an array\n* `letterPositions`: a function that returns  all the indices (zero-based positions) in the string where each character is found.\n* `map`: a function takes in two arguments (an array and a callback) and returns a new array based on the results of the callback function\n* `middle`: a function that will return only the middle element(s) of an array based on conditions such as array length\n* `tail`: a function that will return the \"tail\" of an array: everything except for the first item (head) of the provided array.\n* `takeUntil`: a function that will return a slice of the array with elements taken from the beginning until the callback returns a truth value\n* `without`: a function that will return a subset of a gievn array, removing unwanted elements\n\n\n\n\n\n\n","readmeFilename":"README.md"}