{"_id":"@amurrai/lotide","name":"@amurrai/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amurrai/lotide","version":"1.0.0","description":"Training project for Lighthouse Labs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amurrai/lotide.git"},"author":{"name":"amurrai"},"license":"ISC","bugs":{"url":"https://github.com/amurrai/lotide/issues"},"homepage":"https://github.com/amurrai/lotide#readme","devDependencies":{"chai":"^4.3.10","mocha":"^9.2.2"},"gitHead":"11a14e4a23e3d948b18670491c3fb9ea0e83b07d","_id":"@amurrai/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-dB18NhzoBAGt8tCKJBDVlp67n8aa1AP6ltKibIErhApRehEohzTMlKv6wRU74qYjdhan2yYbqaW8iBfKptOV4Q==","shasum":"e369282fa042ef93ee9a17637288a6301407d37c","tarball":"https://registry.npmjs.org/@amurrai/lotide/-/lotide-1.0.0.tgz","fileCount":24,"unpackedSize":11372,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIF9VP72KK2DL/KgrzXTVrfj6QKYC13iEikuk1BMdKyJgAiEAjxClNYgn4evBdXZvSLsecJvd3vznN2TlUsQQ3YFXmH4="}]},"_npmUser":{"name":"amurrai","email":"andre.murrai@gmail.com"},"maintainers":[{"name":"amurrai","email":"andre.murrai@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1699677587604_0.6161497130009739"},"_hasShrinkwrap":false}},"time":{"created":"2023-11-11T04:39:47.532Z","1.0.0":"2023-11-11T04:39:47.958Z","modified":"2023-11-11T04:39:48.270Z"},"maintainers":[{"name":"amurrai","email":"andre.murrai@gmail.com"}],"description":"Training project for Lighthouse Labs","homepage":"https://github.com/amurrai/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amurrai/lotide.git"},"author":{"name":"amurrai"},"bugs":{"url":"https://github.com/amurrai/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 @amurrai/lotide`\n\n**Require it:**\n\n`const _ = require('@amurrai/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(...)`: description\n* `head(arr)`: returns the first element of an array \n* `tail(arr)`: returns all elements of an array except from the first\n* `middle(arr)`: returns the middle index item of an array with an odd number of elements and the middle 2 items of an array with even number of items\n* `flatten(arr)`: takes a 2 level array and returns a single level array with the same items \n* `map(arr, callback)`: returns an array of the results of the callback over each item in arr\n* `takeUntil(arr, callback)`: returns an array of the callback over each item of arr\n* `without(arr, itemsToRemove)`: returns an array without the items listed to be removed\n* `findKey(obj, callback)`: returns the key of callback in obj\n* `findKeyByValue(object, value)`: returns the key of value in obj \n* `countLetters(str)`: returns an object with keys for each letter in the string and the value of their respective counts\n* `countOnly(arr1, arr2)`: returns an object with the items from arr2 as keys and the values equal to the counts of each item in arr1\n* `assertArraysEqual(arr1, arr2)`: console.log the return of eqArrays\n* `assertEqual(actual, expected)`: console.log assertion of comparison between actual and expected\n* `assertObjectsEqual(actual, expected)`: deep comparison between objects actual and expected\n* `eqArrays(arr1, arr2)`: shallow comparison between arrays arr1 and arr2\n* `eqObjects`: \n* `letterPositions(str)`: takes a string and returns an object with a key for each letter and the value of all indexes of the letter occurence ","readmeFilename":"README.md"}