{"_id":"@brookenagy/lotide","name":"@brookenagy/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brookenagy/lotide","version":"1.0.0","description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/BrookeNagy123/lotide.git"},"author":{"name":"Brooke Nagy"},"license":"ISC","bugs":{"url":"https://github.com/BrookeNagy123/lotide/issues"},"homepage":"https://github.com/BrookeNagy123/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"24b2a6c05fcb680d402ee0671efb1501773060b2","_id":"@brookenagy/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-SRuWYwPah7jdazhY6MCUPvybcEMWCFfoup+MnhMGIYPBQ8btenJpHMBWTUNmRSDNdKP9fa8xYrf/KBAkgb4qVQ==","shasum":"4403281db449af999ea893027e87957116c47d88","tarball":"https://registry.npmjs.org/@brookenagy/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":22585,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBYvFybLPn2VzCk+yv0zINVW/0zfAeK8ulXAenwoDuCqAiEA+ETOVupGPoG/wi8KuHdvK+Rj1R9XDPuunN/a/OGZZFk="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjbqnRACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrO1xAAm/v8Y/GaV38VdTfjhmaIUqB/ywuBccWm8O4YolkcFJDrU11j\r\nz/JV3w7foIojZoRmT1P1hIugwgEVa6ih5Jzr7QfJW/qWr/g3Lrv2Bq4uhxNh\r\nNvtNXsXkmasQJ70MZtTeCUbuSR9qOD7vX7WWAMRe86d1r0e9iLtxH6+NAKig\r\nw8gEpId9yuet6FsAVvUbu9EW6js0AKRityWLHodCLgU7GK9Iu2cl7yx9lrZu\r\nTIPvhu8JTEtVx1iXRNpKEjoBT6eas3pG7sfY+jIXlwtelZCofxzgXZ5Ty5Yk\r\nVSSWLjvLpS+E9guyZUlxwspszyvvuqzWO0EMd5oKHiobZM9a8okwX+a3hFx3\r\ncRRlp9PcMsiRxwY2A4DiqcNcUVgXn/A0730tiL+tk5xEM4ohBkief0PyUdmd\r\nJLVHn6dqxlK97A/hkeXZmgcWqUshyVUnQB/UGba9bONZXKj8gRDOwDe3wqHb\r\ncR1W04rllvm7XBDBa/rmCka/ulEln0JV9vptq3Nt4FFJK0TO+P0hkup1T0p3\r\nW5zuAXEdIWuC5UrrTi3ATy1T598WjFy/X4WbudDpxno5Sm5WrtYAl8DxSmB1\r\nLHdrO6wCvk/cjp28lM7KR+SmxCuUjxQ4StBqGrOno4fH1JUyb+SWd3bJzckH\r\nlcAcxfxy93hCN4qbSi6z38GDCJYfIH2u9g4=\r\n=nAkH\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"brookenagy","email":"brooke_nagy123@hotmail.com"},"maintainers":[{"name":"brookenagy","email":"brooke_nagy123@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1668196817564_0.40881762045443515"},"_hasShrinkwrap":false}},"time":{"created":"2022-11-11T20:00:17.516Z","1.0.0":"2022-11-11T20:00:17.752Z","modified":"2022-11-11T20:00:17.889Z"},"maintainers":[{"name":"brookenagy","email":"brooke_nagy123@hotmail.com"}],"description":"The Lotide project is inspired by the Lodash project, which is a utility library for JavaScript.","homepage":"https://github.com/BrookeNagy123/lotide#readme","repository":{"type":"git","url":"git+https://github.com/BrookeNagy123/lotide.git"},"author":{"name":"Brooke Nagy"},"bugs":{"url":"https://github.com/BrookeNagy123/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 @brookenagy/lotide`\n\n**Require it:**\n\n`const _ = require('@brookenagy/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* `head`: A function that takes in an array and returns the first element in the array.\n* `tail`: A function that takes in an array and returns everything except the first element of the array.\n* `middle`: A function that takes in an array and returns middle most element of the array.\n* `assertArraysEqual`: A function that takes in 2 arrays and returns true if they are equal and false otherwise.\n* `assertEqual`: A function that takes in 2 values and returns true if they are equal and false otherwise.\n* `assertObjectsEqual`: A function that takes in 2 objects and returns true if they are equal and false otherwise.\n* `countLetters`: A function that takes in a sentence and returns a count of each of the letters in the sentence.\n* `countOnly`: A function that takes in a collection of items and returns a specific subset of those items.\n* `eqArrays`: A function that takes in 2 arrays and returns true if the arrays are equal and false otherwise.\n* `eqObjects`: A function that takes in 2 objects and return true if they are equal and false otherwise.\n* `findKey`: A function that takes in an object and callback and returns the first key that meets the criteria specified in callback.\n* `findKeyByValue`: A function that takes in an object and a value and returns the first key that corresponds to that value.\n* `flatten`: A function that takes in an array that contains elements including nested array of elements and returns a flattened version of the array.\n* `letterPositions`: A function that takes in a string and returns all indices of letter positions in the string.\n* `map`: A function that 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`: A function that takes in an array and callback and returns a slice of the array based on the criteria specified in the callback.\n* `without`: A function that 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\n  \n\n\n\n  ","readmeFilename":"README.md"}