{"_id":"@akhh/lotide","_rev":"1-03f1fe9673893ed51d9a25af45c46614","name":"@akhh/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@akhh/lotide","version":"1.0.0","description":"A mini-clone of the Lodash (https://lodash.com) library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/anniekao/lighthouse-lotide.git"},"keywords":[],"author":{"name":"Annie Kao"},"license":"ISC","bugs":{"url":"https://github.com/anniekao/lighthouse-lotide/issues"},"homepage":"https://github.com/anniekao/lighthouse-lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^6.2.0"},"gitHead":"af3af8030f4a8f834eda49da36389ccec6eec667","_id":"@akhh/lotide@1.0.0","_nodeVersion":"10.13.0","_npmVersion":"6.9.2","dist":{"integrity":"sha512-I2/1raRCd/mOJKGJTlTR9m0H0NN6Dyb3Hc7erIWk6ywiUh9KXclj0FgN5Go8dRGDsRxi3sMXCFaJnOlDwx261Q==","shasum":"11fe8f6c9900e017fe6fae55711fee7645009690","tarball":"https://registry.npmjs.org/@akhh/lotide/-/lotide-1.0.0.tgz","fileCount":34,"unpackedSize":24096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdP1baCRA9TVsSAnZWagAAB3wP/A5MxJINyrODPCEZznQ3\njWCgalSBYMEtBFSAVqyLiRtJrt+J6/6+IaPLLdF9jZK6hbH+iCi8yYsMen+O\nxBSzKT9H2qJbQOvgxGtZuA7c9FUkvf5k2XyMpVLzP2ajMnRSaFwRLltcM+0Y\nqJRaWb9B+8x/7g0pkUu3xHa+16Rkcb/jkbcuKz6sY8nr4Ow7DkQW3II+2zRr\nJyurpi5TffYEbSfPpqjsn9VXbFWD+qcZcySVuHIOwLM0bd3qFtlruSj6Lxro\n0XuSV2SOH5OKbiRrP/SqkKoSSW1dYqz7qSfQPfmzZi7WZqfVg+wdDS/MV900\nS5GtGT6xt5OpfEAF6iAzh3URtf+2/JTCovrij6yI5LCrDsjJ3SfPvNprdyo5\nkt6H8pNE4YoAh3K2j2SicIrp2njQmc6Wl0j7dO/8UlKwEpkM0isKnnUhkcQH\nLGXnxvqxDyysV9YL2pdXk7YOipgQnfcOhHxFw/wPBSMUoYxPjxJh8KMs/LNI\nI5P0ixVlHdBs8T2WLkcV87izEtybANC/WUfd7q/zRmQRNwhzcS0zdTbs/kLP\nQsYt0ynYrUx6Ih6jvuq20BEHfUzul62NjcqIoluw00MgPL8ZWBvwrqmKU3IR\no/wlue1Vd/Ck65h0OcV9DVUbJ1B03ARb4+XQiDOQxJh9D49pUXvT1L5j8x7t\nRLVo\r\n=3pPl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDEGudF8sv5AT6+Y27X+d1Z5jQQWZTx0FsH1tYRny46qgIhAPfuAMRFMdNNn9G1EjZxGlvr7Qv56UzQnkCUaV6QXkZ/"}]},"maintainers":[{"name":"akhh","email":"anniekao@trentu.ca"}],"_npmUser":{"name":"akhh","email":"anniekao@trentu.ca"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1564432088652_0.18157854792116312"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-29T20:28:08.417Z","1.0.0":"2019-07-29T20:28:08.790Z","modified":"2022-04-04T12:29:11.338Z"},"maintainers":[{"name":"akhh","email":"anniekao@trentu.ca"}],"description":"A mini-clone of the Lodash (https://lodash.com) library","homepage":"https://github.com/anniekao/lighthouse-lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/anniekao/lighthouse-lotide.git"},"author":{"name":"Annie Kao"},"bugs":{"url":"https://github.com/anniekao/lighthouse-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 @anniekao/lotide`\n\n**Require it:**\n\n`const _ = require('@username/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(...)`: given two arrays, prints out a string indicating if they are equal\n* `assertEqual(...)`: compares two values and  prints out a string indicating if they are equal\n* `assertObjectsEqual(...)`: given two objects, prints out a string indicating if they are equal\n* `countLetters(...)`: given a string, returns an object containing a count of each letter in the string\n* `countOnly(...)`: given an array and an object of keys and booleans as values, returns a count of those objects in the array with a value of true in the given object \n* `eqArrays(...)`: given two arrays, returns a boolean indicating if they are equal\n* `eqObjects(...)`: given two objects, returns a boolean indicating if they are equal\n* `findKey(...)`: given an object and a callback, returns the key where the callback evaluates to true\n* `findKeyByValue(...)`: given an object and a value, returns the key in the object based on the value\n* `flatten(...)`: takes a nested array and returns a new array without nested arrays\n* `head(...)`: takes an array and returns the first element of the array\n* `lettersPositions(...)`: takes a string and returns an object containing an array for each letter containing their index in the string\n* `map(...)`: takes an array and a callback function and returns a new array based on the given callback\n* `middle(...)`: takes an array and returns a new array containing the middle element, if the array contains an odd number of items. Otherwise it returns a new array containing the middle two elements (if the array contains an even number of item)","readmeFilename":"README.md"}