{"_id":"@calebseifu/lotide","_rev":"1-146208a6727c4edbc4b01dd1275d4d98","name":"@calebseifu/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@calebseifu/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/workuseifu1/lotide.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/workuseifu1/lotide/issues"},"homepage":"https://github.com/workuseifu1/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"00974f09f77579c9284fb833b0eb7330be272039","_id":"@calebseifu/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-lCdmC1zT+IIbAtthEI4qDJ3X1BCh+w2WcBivZ3atCnyHgwDcHvze5R+/wKKKqKLpIP0MrHKCFU5Uho27JQGXOA==","shasum":"ff0f3322a91bfa18724471bac80562ded375ace9","tarball":"https://registry.npmjs.org/@calebseifu/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":15215,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB2xyZwHwCapE83N1NP1poy9ZC8Wj6zG35BNNAF5KOXmAiBk3If/JMogKXM9FxRA2AOP5E/rvM6itxRt31u9Yc1tBA=="}]},"_npmUser":{"name":"calebseifu","email":"workuseifu1@yahoo.ca"},"maintainers":[{"name":"calebseifu","email":"workuseifu1@yahoo.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1683820373703_0.7682481233045084"},"_hasShrinkwrap":false},"1.0.1":{"name":"@calebseifu/lotide","version":"1.0.1","description":"lotide","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/workuseifu1/lotide.git"},"author":{"name":"Worku Wake"},"license":"ISC","bugs":{"url":"https://github.com/workuseifu1/lotide/issues"},"homepage":"https://github.com/workuseifu1/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"c33418eeffcb1a13c54bae2e263a1d561859eabf","_id":"@calebseifu/lotide@1.0.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-f3kCsjDv+w679AkiscT9RyrlmMi7mG+q4+xMOMkzRt9Bm9yiof/VdJF/7aLNbqkcd6BLBJStUBUCavALgnYs/w==","shasum":"08d739eb5b20df4089b32e60605cccfa38647502","tarball":"https://registry.npmjs.org/@calebseifu/lotide/-/lotide-1.0.1.tgz","fileCount":37,"unpackedSize":15547,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQD3RU1y7HibE4hP35GW5T6PEO6JjIUA+PaIxWbKMhYgjgIgZR6S+MKdNzKNVrk/2wlMx5HfYX089SkTu23U80msMIc="}]},"_npmUser":{"name":"calebseifu","email":"workuseifu1@yahoo.ca"},"maintainers":[{"name":"calebseifu","email":"workuseifu1@yahoo.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1683937379755_0.4120030590845938"},"_hasShrinkwrap":false}},"time":{"created":"2023-05-11T15:52:53.630Z","1.0.0":"2023-05-11T15:52:53.884Z","modified":"2023-05-13T00:23:00.041Z","1.0.1":"2023-05-13T00:22:59.925Z"},"maintainers":[{"name":"calebseifu","email":"workuseifu1@yahoo.ca"}],"description":"lotide","homepage":"https://github.com/workuseifu1/lotide#readme","repository":{"type":"git","url":"git+https://github.com/workuseifu1/lotide.git"},"bugs":{"url":"https://github.com/workuseifu1/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 @calebseifu/lotide`\n\n**Require it:**\n\n`const _ = require('@calebseifu/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* `function1(head)`: should take an array and return first element of the array. returns 'Hello' for array of ['Hello', 'Lighthouse', 'Labs']\n* `function2(tail)`: should take an array and return back the array exept the first element(head).\n* `function3(middle)`: should  take in an array and return the middle-most element(s) of the given array.returns [3, 4] for [1, 2, 3, 4, 5,6] and returns [3] for [1, 2, 3, 4, 5]\n* `function4(without)`: shopuld take in an array and unwanted element. which will return a subset of a given array, removing unwanted elements.returns [2, 3] for  array of [1, 2, 3], unwanted element of [1].\n* `function5(takeUntil)`: should take an array and callback.return a \"slice of the array with elements taken from the beginning.\" It should keep going until the callback/predicate returns a truthy value.returns [ 1, 2, 5, 7, 2 ] for  an array [1, 2, 5, 7, 2, -1, 2, 4, 5] and callback function x => x < 0.\n* `function6(map)`: should take an array and callback function and returns new array baseon the result of callback function.\n* `function7(leterPositions)`: should take in a sentence(string) and return all the indices in the sentence. returns [1] for for the position of 'e' in 'hello'\n* `function8(flatten)`: should take an array with other arrays inside, it can flatten it into a single-level array.returns [1, 2, 3, 4, 5, 6] for given array of [1, 2, [3, 4], 5, [6]]\n* `function9(findKey)`: which takes in an object and a callback. It should scan the object and return the first key for which the callback returns a truthy value. If no key is found, then it should return undefined.  \n* `function10(countOnly)`: should take in an array of items and return count for specific item.\n* `function11(countLetters)`: should take in a sentence(string) and return count of each letter as an object key/value. example countLetters(\"hello\") return {h:1, e:1, l:2, o:1}\n* `function12(findKeyByValue)`: shoud take in an object and a value. return the first key which contains the given value.","readmeFilename":"README.md","author":{"name":"Worku Wake"}}