{"_id":"@beccasbizarreadventure/lotide","name":"@beccasbizarreadventure/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@beccasbizarreadventure/lotide","version":"1.0.0","description":"A mini clone of the Lodash library, this library was published for learning purposes","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/beccasbizarreadventure/lotide.git"},"author":{"name":"Rebecca S","url":"https://github.com/beccasbizarreadventure"},"license":"ISC","bugs":{"url":"https://github.com/beccasbizarreadventure/lotide/issues"},"homepage":"https://github.com/beccasbizarreadventure/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"f8e45555ef7465352426c67dcac8e95acfdb5f19","_id":"@beccasbizarreadventure/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-NCuNgWOOeXU51vccrwpqTosLIegGBI6YN/kNGKP6caGNZ99Zq1Aet53zA4PFUYM+n578BAjAuQBK74e06ftILg==","shasum":"83229938ffe0711da38a03eda2317b0889f8a50e","tarball":"https://registry.npmjs.org/@beccasbizarreadventure/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":28027,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICCfOu0XnoBLZakbpmFyPfe8jPlN8mdB/JBN8tknZjqDAiEA4Fgd+9GziOUFYN0H0SqhsHZMptgIHDxH9jnDx7fmspg="}]},"_npmUser":{"name":"beccasbizarreadventure","email":"rebecca90469@gmail.com"},"maintainers":[{"name":"beccasbizarreadventure","email":"rebecca90469@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1707765698986_0.2908751365929929"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-12T19:21:38.910Z","1.0.0":"2024-02-12T19:21:39.120Z","modified":"2024-02-12T19:21:39.422Z"},"maintainers":[{"name":"beccasbizarreadventure","email":"rebecca90469@gmail.com"}],"description":"A mini clone of the Lodash library, this library was published for learning purposes","homepage":"https://github.com/beccasbizarreadventure/lotide#readme","repository":{"type":"git","url":"git+https://github.com/beccasbizarreadventure/lotide.git"},"author":{"name":"Rebecca S","url":"https://github.com/beccasbizarreadventure"},"bugs":{"url":"https://github.com/beccasbizarreadventure/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 @beccasbizarreadventure/lotide`\n\n**Require it:**\n\n`const _ = require('@beccasbizarreadventure/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`: compares two single-level arrays and logs a pass/fail assertion based on exact equivalency.\n* `assertEqual`: compares two numbers or strings and logs a pass/fail assertion based on exact equivalency.\n* `assertObjectsEqual`: compares two objects and logs a pass/fail assertion based on exact equivalency.\n* `countLetters`: takes a string and counts the instance of each unique letter in the string.\n* `countOnly`: takes an array of strings and an object and counts the instances of the true values identified in the object that are contained in the given array.\n* `eqArrays`: compares two single-level arrays and returns 'true' or 'false' based on exact equivalency. \n* `eqObjects`: compares two objects and returns 'true' or 'false' based on exact equivalency. \n* `findKey`: takes an object and a callback function and returns the key of the first instance where the callback function returns a truthy value. \n* `findKeyByValue`: takes and object and a value and returns the key of the first instance of the given value.\n* `flatten`: creates a single-level array from a two-level array.\n* `head`: returns the first value of an array.\n* `letterPositions`: takes a string and returns the indexes of a specified letter in that string.\n* `map`: takes an array and a callback function and returns a new array from the results of the callback function.\n* `middle`: returns the middle value(s) of an array.\n* `tail`: returns all values of an array, except the first value.\n* `takeUntil`: takes an array and a callback function and pushes items into a new array until the callback function returns a truthy value.\n* `without`: takes two single-level arrays, removes the items in array one that are common to array two, and returns a new array of the remaining items.","readmeFilename":"README.md"}