{"_id":"@amyfranses/lotide","_rev":"1-d97df05e6958d16053244087410e2c9a","name":"@amyfranses/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amyfranses/lotide","version":"1.0.0","description":"Lotide is a learning exercise. It is a mini clone of Lodash","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amyfranses/lotide.git"},"author":{"name":"Amy Franses"},"license":"ISC","bugs":{"url":"https://github.com/amyfranses/lotide/issues"},"homepage":"https://github.com/amyfranses/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.0"},"gitHead":"3a0b9bb2efc7d30441bbe0eba8bc2e6cbb8fb51c","_id":"@amyfranses/lotide@1.0.0","_nodeVersion":"12.22.8","_npmVersion":"6.14.15","dist":{"integrity":"sha512-kPQAZP4agfhMlCr3r8VFVfYGmgHb7H9P4MhmOflgkm5kgZ+j2uM/IF0qr3Yl4AA+sXALpa0WhG9lqLWuvyN8GQ==","shasum":"383c81e649903f48ce3ba1e8ea63248498fd0cb7","tarball":"https://registry.npmjs.org/@amyfranses/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":17863,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJiDHgmCRA9TVsSAnZWagAAU9sP/0+TBBgD6awedPJ7zctP\nstfRjyD9j4ABPM9JJS1LqUfcS7BjWDEGWFXY4oP9yP1id/UeE5w8bOQCwWy+\nZCzz3zo4xuiSS8tkWZA19yPAjtjo9hAkOrf8zEOjySPPJg8VpEG8hkQTGzmY\niO+lF40wicJNIQOF9Q2CddZEbPShnJnm26p57TUXz+Y6hflOHvkFV5g7uyGp\nl2Dhi5icdWKeYYMkko02DQ5XCuY17R5ebBq3QfhvqsiFcZnY3R3DIsRqEFda\ngpSy3oIgymOiUrhVFC3ZwTJYNyFoauTMJsxjQAtzv9Nu48AmPZdgC/AQf5LF\nzDMtV2/FTb3iI00SNDV8xYzqOf3ct78DhuDSL2EAXKznL/y/aFz/u9HktSkJ\nJMnQ810fp+ZJuFL19TMDPYFFth95wTG90+NK5EPucfzDOC4komzYlkxDz1UK\nRJYSFnXfOWM4AnIrRDI+h10rdaWkZsVeX1lR04uTxqrs6kczAa7k4CylEJ/p\nlp+9G3w4TuwniGhKP38SLE1Hk/5OtWpK4HXOD0deoXEUWgxnHOSvZKAJawr9\nWXDKL8a3TRZjCqm2kmTjn59OY54zAF0AAh7pEcjvonRggF9sbbjZocKX3A1P\n7eV3nC85VDqxfs8r1/+17VG21kZ10jGkBPPiSna8A4ITu8UAvYoJNeOlu9L7\nolb7\r\n=WF1C\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDlBhaj9uZFpkZGaOC8MWJYNY7Dpnrnov3WXPegxju8IQIgXW90Vbw8dtlO5UxH8+7AG2LC5IylWeENlskvYKR8N84="}]},"_npmUser":{"name":"amyfranses","email":"amyfranses@gmail.com"},"maintainers":[{"name":"amyfranses","email":"amyfranses@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1644984358825_0.5660216384754004"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-16T04:05:58.777Z","1.0.0":"2022-02-16T04:05:58.957Z","modified":"2022-04-04T13:53:29.841Z"},"maintainers":[{"name":"amyfranses","email":"amyfranses@gmail.com"}],"description":"Lotide is a learning exercise. It is a mini clone of Lodash","homepage":"https://github.com/amyfranses/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amyfranses/lotide.git"},"author":{"name":"Amy Franses"},"bugs":{"url":"https://github.com/amyfranses/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 @amyfranses/lotide`\n\n**Require it:**\n\n`const _ = require('@amyfranses/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- `assertEqual()`: takes in 2 values and returns true if they are equal, false if they are not.\n- `head()`: retrieves the first element from an array\n- `tail()`: retrieves every element except the first element of an array\n- `eqArrays()`: takes in 2 arrays and returns true if they are equal, false if they are not.\n- `asserArraysEqual()`: takes in 2 arrays and returns true if they are equal, false if they are not.\n- `without()`: returns source array having removed specified items.\n- `flatten()`: intakes array with nested elements and returns one flattened array.\n- `middle()`: retrieves the middle element(s) of an array.\n- `countOnly()`: takes in a collection of items and returns a specific subset of those items.\n- `countLetters()`: takes in sentence and returns a count of each letter in the sentence.\n- `letterPostitions()`: takes in a string and returns letter positions.\n- `findKeyByValue()`: takes in an object and returns first key that corresponds to that value.\n- `eqObjects()`: takes 2 objects and returns true if they are equal, faslse if not.\n- `assertObjectsEqual()`: takes 2 objects and returns true if they are equal, faslse if not.\n- `map()`: takes in an array and callback then returns a new array based on the callback on each item.\n- `takeUntil()`: takes in an array and callback and returns a slice of the array based on the callback.\n- `findKey()`: takes and object and a callback and returns the first key that meets the criteria of callback.\n\n","readmeFilename":"README.md"}