{"_id":"@a_fairlie/lotide","_rev":"1-c9a9ac67db79ce01bbcc069eb64d708c","name":"@a_fairlie/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@a_fairlie/lotide","version":"1.0.0","description":"a mini clone of lodash","main":"index.js","directories":{"test":"test"},"devDependencies":{"mocha":"^7.1.1","chai":"^4.2.0"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/afairlie/lotide.git"},"author":{"name":"Ariane Fairlie"},"license":"ISC","bugs":{"url":"https://github.com/afairlie/lotide/issues"},"homepage":"https://github.com/afairlie/lotide#readme","gitHead":"547c925b684289a3c0ab351812ad1daffde3b9fb","_id":"@a_fairlie/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.14.4","dist":{"integrity":"sha512-NWsEP8ypmZ8M2MULf8P1JX+D+BlUufS2eD29zseqcJbiORCTbq3ecHv8IaBNOTmPpOlBCusLHA0HSEyFADfPVA==","shasum":"31e7303ae59b83ccf6a76577107f3a4206f58b71","tarball":"https://registry.npmjs.org/@a_fairlie/lotide/-/lotide-1.0.0.tgz","fileCount":36,"unpackedSize":18684,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJei9SlCRA9TVsSAnZWagAA9eYQAJnPfEAJNUFxJ1c3//XQ\neXsKA7JuIpsLScgmYI+cmWMzvACDWXlONFwz2xhB3DxIcmsX0qRCka/P7aOA\n9Xsn+VvR9JyltjFSCFrUalzyoF2657NFBRw2ltimnchM5QOUtujlqL8snxgH\nqWnNStQOrzExao/+nXuD3ZhKgeDLKKwHhlYE6ZrkhKlceeGhhXbu/6d9OSmq\nDT+AiZbN5PQbOvcYqBE+BD/2NsdJNH8xJ3uxieHvSwWOMQ8ZYyiaXGLbd+2Q\nbK7p3nToEyQO55CxvT3wmm8XI+iRuNFTIHcAJkFW5gGjAox9rzSbJOj+2e4t\nCSsg67e8RzFYVgQaXweNqw/2QlUFkpTVt8AgSi1pZGJ2D143PC/bacSj/rMF\ns6NNGptpFyHHFWxXEhBk+PgXmy18Xxi9SRKLQuv0ztNJbVvITtvtQM9gYJs/\nbN+gfABGuhIrXWPN89INTbvhSRCpxDJy92zA4eOeMCZqhfOtAO6J4TizpGLp\n3bbWRB87dIf7+KbJOH/iVF8YJRdc7P5sGzsMemLrKMfo151ZbXzIyRibBAdn\nPdW9KHbTu1Qse7K0GZyXImAjygAgpTGsODv5rFBvN3KScNq7r3c9z1AQYqxt\nnPqEWCyK1xIEOTV/002pNNEma5NQA3XbInGk+cCbUcmo/elmkHxowrojiLn3\n4lPu\r\n=0T/W\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD1PFWGyeieXKHZ4oKg7LJPGU8PzwJPheloK4upRN+SxQIhAL0rTx/Q7c/o9pBccxJvATcRupl2H//JIe4z1wfBw9zw"}]},"maintainers":[{"name":"a_fairlie","email":"ariane.fairlie@gmail.com"}],"_npmUser":{"name":"a_fairlie","email":"ariane.fairlie@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1586222244777_0.8197739363526524"},"_hasShrinkwrap":false}},"time":{"created":"2020-04-07T01:17:24.532Z","1.0.0":"2020-04-07T01:17:24.908Z","modified":"2022-04-04T10:54:21.875Z"},"maintainers":[{"name":"a_fairlie","email":"ariane.fairlie@gmail.com"}],"description":"a mini clone of lodash","homepage":"https://github.com/afairlie/lotide#readme","repository":{"type":"git","url":"git+https://github.com/afairlie/lotide.git"},"author":{"name":"Ariane Fairlie"},"bugs":{"url":"https://github.com/afairlie/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 @a_fairlie/lotide`\n\n**Require it:**\n\n`const _ = require('@a_fairlie/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 (arr1, arr2) | console.log assertion that two arrays are deep equals.\n\n✔️ assertEqual (actual, expected) | console.log assertion that two arrays are deep equals.\n\n✔️ assertObjectsEqual (obj1, obj2) | console.log assertion that key-value pairs in an object are deep equals\n\n✔️ countLetters (string) | count the number of times each letter of a string occurs\n\n✔️ countOnly (array, obj{key: true, key: true, etc.}) | receive an array and an object. It will return an object containing counts of everything that the input object listed.\n\n✔️ eqArrays (arr1, arr2) | check that two arrays are deep equals. return true/false\n\n✔️ eqObjects (obj1, obj2) | check that key-value pairs in an object are deep equals. return true/false\n\n✔️ findKey (object, callback) | scan an object and return the first key for which the provided callback returns a truthy value. If no key is found, then it should return undefined.\n\n✔️ findKeyByValue (object, value) | can the object and return the first key which contains the given value. If no key with that given value is found, then it should return undefined.\n\n✔️ head (array) | return the first item of an array\n\n✔️ letterPositions (string) | return all the indices (zero-based positions) in the string where each character is found.\n\n✔️ map (array, callback) | return new array mutated by callback function\n\n✔️ middle (array) | take in an array and return the middle-most element(s) of the given array.\n\n✔️ tail (array) | take in an array and return exluding first value\n\n✔️ takeUntil (array, callback) | receive array and return copy of array based on callback\n\n✔️ without (array, callback) | return a subset of a given array, removing unwanted elements.\n","readmeFilename":"README.md"}