{"_id":"@amalhussn/lotide","_rev":"1-102b6ba5e5a32ec94598422701bf53d8","name":"@amalhussn/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amalhussn/lotide","version":"1.0.0","description":"Lotide","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amalhussn/lotide.git"},"author":{"name":"Amal"},"license":"ISC","bugs":{"url":"https://github.com/amalhussn/lotide/issues"},"homepage":"https://github.com/amalhussn/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"bbe102a1c3e537eb86dbf7280b0a84a6bd399c4c","_id":"@amalhussn/lotide@1.0.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-OWqdBbbLF+JMj+bl7c8jLyI159MIul1ZZf58NiK1gmWEV7AERSvhploTuesT7y7357Zvud5MeECHbfn1I+3Cag==","shasum":"b8f8f8c9310f4c8b2a1b2dc1705e87a3c102f3d6","tarball":"https://registry.npmjs.org/@amalhussn/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":17241,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhqByXCRA9TVsSAnZWagAAsfUQAJ6dKfHwRR3wW9GXhjA1\nsOv7gOLot4OOa/NHF/XQApTdfIlZcvTZhMtJDe4UCm8O97gNXfSBMocyi1rv\n+Avwe62mPwJoKtLcZ3vvdkUfzNDAtfy+pqWV8hDPLWOC/VhrYf8OFx0F2HaF\nnsvr6W4ZeQbXKH7+Y63R0e31myTMcPT0zuhMrchK9lLYScjCEcQn6eL7Es+W\nOa9aDCL7tj8LFb3vaQNrGvGJSoPjeflSZgyX2pGOeRtEq+IA2638LnAQvikQ\ns8zvwsIvHrGgcdS+io63Cv7ETGWI0V3Y5EbTrb6JNP2vB4o1BroYkDBWgB8J\nmgUbu9AMiejhrPAIdh0sbZFfb8G/rB1xtOrQ1dxo6J6f0/ZbDVM11964hUQ+\ngobteC4UkYzipwlFBQHzPhTLZ5Qs8mcIbo7MCsM5QBSmaddchLp1r5VWTHXF\nhIo+zTJdEBgEo7qmAMSS6smXv296O5TpAcVUa8ZA1/J5CelRvy0d/OkqlX69\nzDAFpYiAyxCvlMUMxJlu/FiuZYV89r2IV1xelQl/98FixxxG7hO9H37b5jOe\n7zXVh199uwpYBZWKMUw3c7PMmfiLkafKMsrB6Zzd6BOgWxDexc3PEFa3467c\n2G6GUdBgEgEVRY3wfEk11KisQlkMx3teSe7GWCvb0qubgBC6xF8gvFCxjBi5\n1+dC\r\n=NeSJ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZyUPLCEMnWEGVAIiIHulhhRU1bDpM9GyM44WmsCxukwIgcJ1lUHnYP5Ao4SHopFyL2ih9jcQ4PbXT9+bhjrGUMqc="}]},"_npmUser":{"name":"amalhussn","email":"amalohussein@gmail.com"},"maintainers":[{"name":"amalhussn","email":"amalohussein@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1638407319205_0.9263934963410361"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-02T01:08:39.157Z","1.0.0":"2021-12-02T01:08:39.427Z","modified":"2022-04-04T13:42:42.182Z"},"maintainers":[{"name":"amalhussn","email":"amalohussein@gmail.com"}],"description":"Lotide","homepage":"https://github.com/amalhussn/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amalhussn/lotide.git"},"author":{"name":"Amal"},"bugs":{"url":"https://github.com/amalhussn/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 @amalhussn/lotide`\n\n**Require it:**\n\n`const _ = require('@amalhussn/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`: Asserts that two arrays are equal.\n* `assertEqual`: Compares two values it takes in and prints out a message telling us if they match or not.\n* `countLetters`: Returns a count of each of the letters in the sentence.\n* `countOnly`: This function should takes in a collection of items (in this case, Strings) and return counts for a specific subset of those items.\n* `eqArrays`: Takes in two arrays and returns true or false, based on a perfect match.\n* `eqObjects`: Takes in two objects and returns true or false, based on a perfect match.\n* `findKey`: Returns the first key for which the callback returns a truthy value. If no key is found, then it returns undefined.\n* `findKeyByValue`: Returns the first key which contains the given value. If no key with that given value is found, then it should return undefined.\n* `head`: Retrieves the first element from the array\n* `letterPositions`: Returns all the indices in the string where each character is found.\n* `map`: Returns a new array based on the results of the callback function.\n* `middle`: Returns the middle-most element(s) of the given array.\n* `tail`: Retrieves (the tail) every element except the head (first element) of the array.\n* `takeUntil`: Returns a \"slice of the array with elements taken from the beginning.\" It will keep collecting items from a provided array until the callback provided returns a truthy value.\n* `without`: Returns a subset of a given array, removing unwanted elements.","readmeFilename":"README.md"}