{"_id":"@alinx/lotide","name":"@alinx/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alinx/lotide","version":"1.0.0","description":"A mock library of Lodash","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alicelinx/lotide.git"},"author":{"name":"Alice Lin"},"license":"ISC","bugs":{"url":"https://github.com/alicelinx/lotide/issues"},"homepage":"https://github.com/alicelinx/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"5654e37d5f6d5e93b665f0fc8e3a7c43e9831512","_id":"@alinx/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-EQibIXirdSOml/a6YOxGYaV2ZihZtipomrc+n8F4qA3jLv99sA/b+OTzdVxVuQ96XqOu0iQCQ9XuGv2sSmK+uQ==","shasum":"074bca623364a1126e5a795c836cd7b8cdfa0921","tarball":"https://registry.npmjs.org/@alinx/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":12744,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzKzlWiru5f0zLpVE9CLCNDJXAwjwh01vAWIrd1vwWlQIgMRDuN18fKG+3E87MdzcoNgCsKePU8Iqo+L3n9aNw2Es="}]},"_npmUser":{"name":"alinx","email":"alicexxlin@gmail.com"},"maintainers":[{"name":"alinx","email":"alicexxlin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1686008948161_0.8716567854939341"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-05T23:49:08.110Z","1.0.0":"2023-06-05T23:49:08.340Z","modified":"2023-06-05T23:49:08.509Z"},"maintainers":[{"name":"alinx","email":"alicexxlin@gmail.com"}],"description":"A mock library of Lodash","homepage":"https://github.com/alicelinx/lotide#readme","repository":{"type":"git","url":"git+https://github.com/alicelinx/lotide.git"},"author":{"name":"Alice Lin"},"bugs":{"url":"https://github.com/alicelinx/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 @alinx/lotide`\n\n**Require it:**\n\n`const _ = require('@alinx/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(arr)`: retrieves the first element from the array\n* `tail(arr)`: retrieves every element except the head of the array\n* `middle(arr)`: returns the middle-most element(s) of the array\n* `countLetters(sentence)`: returns a count of each of the letters in the sentence\n* `countOnly(allItems, itemsToCount)`: returns counts for a specific subset of the items\n* `eqArray(arr1, arr2)`: compares two arrays for a perfect match\n* `findKey(obj, callback)`: scans the object and return the first key\n* `findKeyByValue(obj, value)`: finds a key on an object where its value matches a given value\n* `letterPositions(sentence)`: returns all the indices in the sentence where each character is found\n* `map(array, callback)`: returns a new array based on the results of the callback function\n* `takeUntil(array, callback)`: returns a slice of the array with elements taken from the beginning\n* `without(source, itemsToRemove)`: returns a subset of a given array, removing unwanted elements","readmeFilename":"README.md"}