{"_rev":"5-cf7b03798932eb719dd4f25b2a9086f4","time":{"created":"2022-04-07T15:26:01.998Z","1.0.0":"2021-11-12T16:18:31.217Z","modified":"2022-04-07T15:26:02.338Z","1.0.1":"2022-04-07T15:26:02.208Z"},"_id":"@breakfastatkyrils/lotide","name":"@breakfastatkyrils/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@breakfastatkyrils/lotide","version":"1.0.1","author":{"name":"Kyril Remillard"},"description":"A mini clone of the [Lodash](https://lodash.com) library.","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"scripts":{"test":"mocha"},"gitHead":"60794dbc3bb01fff912a230a6b681e4718682214","_id":"@breakfastatkyrils/lotide@1.0.1","_nodeVersion":"17.8.0","_npmVersion":"8.5.5","dist":{"integrity":"sha512-zmWqE7HxJ3JcTMjaaucAdHDcGQf3ayFBsS+EIUFwXc5tEkn43M6X2A0ceFfy4SPt+1c7HAaKf/qTJHXrIBzreQ==","shasum":"210035e6c59bc3435925f4c85da87a875b16e16d","tarball":"https://registry.npmjs.org/@breakfastatkyrils/lotide/-/lotide-1.0.1.tgz","fileCount":21,"unpackedSize":16687,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDcOzSM4OrG1R5UFZgZyI8lvPP4HP3C8qU7qxt44K7DhgIhAKjq7yRuCTexuaPT3OrrILhkqNe39w7A44lgMju1Ldcc"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiTwKKACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpbyQ/+LHT/Wk81BLzourOZBvC34fBL/C1UEGkXowjFWFi8hsFzozFs\r\ntXOT2lJNRU9W9EeqktT5hkvaHc3TMJfj+AYTWJxdc736gISdNQNrsA38YJnx\r\ng2x6I5YtjI1VsITD5+mKaTha57v9L59fMTJY0H88GVXpy+MIAvxL7BiFR8o2\r\nsgH9nTKuQzqPNtp7P4au4Ea2KfelTtmFObR+Yt6lv03SAWFkj7CPaINoXemX\r\nrCuOUyMrR9FoDXT+B6aHxJfRDFLeBbiweLtAjUF0QMfUvPbRg/92QdLzgYBQ\r\npeL2oMp4F8Tjx1lowSbo6q4ltfQRmLAI8B9hmCcREvM6MdLuwylhkV3LTFX4\r\nvtQrYhbh9Aon6HYOqNXquXZByzpXPRU04SnWpFeO1UVr0SIMkPylnerWUEc8\r\nIeo8OqOx6RwuoGmi5mGWY74MvhIcpPvuA/XkWK3jdNXGhkCFPBSfMOFN8dxF\r\nFptSe7xBUixItHBEYhbVCJw67QTaOZvd2V1TL3gK07FlKaPpVjWCLpI2BfHf\r\nMTQAKgr9Hdfbx65xVc7remPaLQyEOL5QXNsuWF1A6+3Au10XX/NXdc5KR91+\r\nfxfNQV8dhPBSaKvFYmzOk07qpOGIUjhZfQmPoj5/GqQeMwNa8uuZqEXN/upu\r\nqEB0Y8A853bKqTYOVYzJrRf0qBgGBtApM1I=\r\n=W552\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"breakfastatkyrils","email":"kyrildr@gmail.com"},"directories":{},"maintainers":[{"name":"breakfastatkyrils","email":"kyrildr@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1649345162064_0.8308073853354148"},"_hasShrinkwrap":false}},"maintainers":[{"name":"breakfastatkyrils","email":"kyrildr@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","author":{"name":"Kyril Remillard"},"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 @username/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* `countLetters(string)`: Takes in a sentence and returns a count of each of the letters in the sentence.\n* `assertEqual(...)`: takes in 2 values and returns true if they are equal and false otherwise.\n* `head(...)`: takes in an array and returns the first element in the array.\n* `tail(...)`: takes in an array and returns everything except the first element of the array.\n* `eqArrays(...)`: takes in 2 arrays and returns true if the arrays are equal and false otherwise.\n* `assertArraysEqual(...)`: takes in 2 arrays and returns true if they are equal and false otherwise.\n* `without(...)`: takes in a source array and an itemsToRemove arrays and returns only the items from the source array that are not in the itemsToRemove array.\n* `flatten(...)`: takes in an array that contains elements including nested array of elements and returns a flattened version of the array.\n* `middle(...)`: takes in an array and returns middle most element of the array.\n* `countOnly(...)`: takes in a collection of items and returns a specific subset of those items.\n* `letterPositions(...)`: takes in a string and returns all indices of letter positions in the string.\n* `findKeyByValue(...)`: takes in an object and a value and returns the first key that corresponds to that value.\n* `eqObjects(...)`: takes in 2 objects and return true if they are equal and false otherwise.\n* `assertObjectsEqual(...)`: takes in 2 objects and returns true if they are equal and false otherwise.\n* `Map(...)`: takes in an array and a callback and returns a new array based on the results of the callback on each item in the array.\n* `takeUntil(...)`: takes in an array and callback and returns a slice of the array based on the criteria specified in the callback.\n* `findKey(...)`: takes in an object and callback and returns the first key that meets the criteria specified in callback.\n\n","readmeFilename":"README.md"}