{"_id":"@carmshito/lotide","name":"@carmshito/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@carmshito/lotide","version":"1.0.0","description":"Lodash Clone","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/carmshito/lotide.git"},"author":{"name":"Carmelia Shito"},"license":"ISC","bugs":{"url":"https://github.com/carmshito/lotide/issues"},"homepage":"https://github.com/carmshito/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"66a44901a9546be67e35f7e63aca18b6d2c09988","_id":"@carmshito/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-CNfkjH8XtdkJHRoAonoIyf34Qs/7EO05CG33JwBZ6A5xsuhVxVzEUDynR0NjT+XJNBH/KlCxgpRTJ6NAbmPVcw==","shasum":"836b0c6705438b7a1bdd839103b8cb91027c0408","tarball":"https://registry.npmjs.org/@carmshito/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":16241,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBHkpMur7yj+GIgaC3fVKcOisL9SjUXpu3R+jB9eYFS0AiBaxfjbQI3wBKuWR8acrcUzRdlo/TK1EIpwvdeTDYAC9A=="}]},"_npmUser":{"name":"carmshito","email":"carmshito@gmail.com"},"maintainers":[{"name":"carmshito","email":"carmshito@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1684020080408_0.7808637513215735"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-13T23:21:20.331Z","1.0.0":"2023-05-13T23:21:20.590Z","modified":"2023-05-13T23:21:20.767Z"},"maintainers":[{"name":"carmshito","email":"carmshito@gmail.com"}],"description":"Lodash Clone","homepage":"https://github.com/carmshito/lotide#readme","repository":{"type":"git","url":"git+https://github.com/carmshito/lotide.git"},"author":{"name":"Carmelia Shito"},"bugs":{"url":"https://github.com/carmshito/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 @carmshito/lotide`\n\n**Require it:**\n\n`const _ = require('@carmshito/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(...)`: asserts that two values are equal\n* `assertArraysEqual(...)`: asserts that two arrays are equal\n* `assertObjectsEqual(...)`: asserts that two objects are equal\n* `eqArrays(...)`: compares if two arrays are equal\n* `eqObjects(...)`: compares if two objects are equal\n* `head(...)`: returns the first element of an array\n* `map(...)`: creates a new array populated with the results of calling a function on every element of the array\n* `tail(...)`: returns the every element of an array except for the first element\n* `middle(...)`: returns the middle element of an array\n* `findKey(...)`: scans the object and returns the first key for which the callback function returns a truthy value\n* `findKeyByValue(...)`: scans the object and returns the first key which contains the given value\n* `countOnly(...)`: function that takes items and returns counts for a specific subset of those items \n* `countLetters(...)`: function that returns counts of each letter of a string\n* `letterPositions(...)`: function that returns all the indices in the strings where each character is found\n* `without(...)`: removes elements from an array\n* `takeUntil(...)`: returns a slice of the array from the original array until the callback provide returns a truthy value\n* `flatten(...)`: function that takes an array containing elements including nested arrays of elements and returns a flattened version of the array\n\n\n","readmeFilename":"README.md"}