{"_id":"@caronise/lotide","_rev":"1-c5359a1b18a84a02f6806c8c7c79c578","name":"@caronise/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@caronise/lotide","version":"1.0.0","description":"lotide project made while studying at Lighthouselabs","main":"assertArraysEqual.js","directories":{"test":"test"},"dependencies":{"chai":"^4.2.0"},"devDependencies":{"mocha":"^6.2.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Caronise/lotide.git"},"author":{"name":"Lucas Betancourt"},"license":"ISC","bugs":{"url":"https://github.com/Caronise/lotide/issues"},"homepage":"https://github.com/Caronise/lotide#readme","gitHead":"a06612f88f10526b3604488faa1d28cba38aa46f","_id":"@caronise/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.12.0","dist":{"integrity":"sha512-5s+QvWqWCgecqNpDhrtYoz85Zw4msXwFrLwVkEHl2EfsEU4PcZwD29tDR5BupNu3B11KyW1avHxnOklXkenVTA==","shasum":"4029e3a1047dc7b74e36e47e4a6ea4328717d340","tarball":"https://registry.npmjs.org/@caronise/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":20382,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdsjX9CRA9TVsSAnZWagAAafQQAIWJao3NYpYyh/EO4kQ2\n54a2mWu4mdE/dhNroc3eJJOyafVlzETKdbMvWDnBj4yg0fVWMmP3l3p8ezkO\n4q3FYsSeQ2r9ZpsNvfr2RONpUGbLx+0G5Mon/Urq5rO9zApizAlfLw/pIqJx\n1FQeAqFAQCkxB3jBmneRenj67in9ndL8FbpjF9JqbO0ENZvghibxn93fovqc\nD83Xs+MOKw/S6KDXDWc0lQl1q/12SsZO635VyHpTuAmnM5WH0OWIUVZYkOUi\n5VG1+NkYo892NFdZ+N/0VtQo2JvKUua9qHwRGzqKVzER9dZDGr5QiYbeaBeU\nukOLZQd5PG5naUfFl1KGOqY6/rellhhMUQMCoDOeJIF+bQxJ0P9rOr+FGULw\ntWjsRByEOgnNb6dYtm48gCCbyHGhWqqO0SIoOTsPOfPXKH3H0oBsyuAnHd2g\nHw9H5J0LSpzHXyFMYBZRb4jNN6kswmn3NkP/og/JK+qyX8wmzQ6zBA+vwPsy\np0oSQDYAajGMKIqsFlSZIWNbH/y26/txkK/ExI/CGgVH+r1frqrKegYXBOVd\nVo6jEc+Fj1PcrnR2lT5Mk0nBAYfNZdPsbz7YT/vdQIK2B555k5wh9u7HAXW7\n6oBOJQGjQoI4SyJ9aKwDeuEU85ltoGdLL3VrfViSxuuvicj1ql9sVtLQzSgZ\n3+rN\r\n=WChV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEMyTXJGLe5SNMtg1LiFbsyIHUugE4FwgQO9bNapoJyvAiEAsS4V+wE/KrWkGbS3UjTwt7Q8/GS6rxnCBDoZSS2s0OI="}]},"maintainers":[{"name":"caronise","email":"lucas.betancourt@hotmail.com"}],"_npmUser":{"name":"caronise","email":"lucas.betancourt@hotmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1571960317193_0.5686990343841156"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-24T23:38:36.956Z","1.0.0":"2019-10-24T23:38:37.362Z","modified":"2022-04-04T21:58:46.488Z"},"maintainers":[{"name":"caronise","email":"lucas.betancourt@hotmail.com"}],"description":"lotide project made while studying at Lighthouselabs","homepage":"https://github.com/Caronise/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Caronise/lotide.git"},"author":{"name":"Lucas Betancourt"},"bugs":{"url":"https://github.com/Caronise/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 @caronise/lotide`\n\n**Require it:**\n\n`const _ = require('@caronise/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()`: Function that accepts two arrays as parameters and prints an appropriate message to the console telling us if they match or not. \n* `assertEqual()`: Function that compares the two values passed to it and prints a message indicating whether they match or not.\n* `assertObjectsEqual()`: Function that accepts two objects as parameters and prints a message to the console telling us if they match or not.\n* `countLetters()`: Function that returns an object where each property is a unique character whose value is the number of times that character occurred.\n* `countOnly()`: Function that takes in a collection of items and returns the count for a specific item.\n* `eqArrays()`: Function that takes in two arrays and returns true or false, based on a perfect match.\n* `eqObjects()`: Function that takes in two objects and returns true or false, based on a perfect match.\n* `findKey()`: Function takes in an object and a callback function. It will iterate through the object and return the first key for which the callback returns a truthy value. If no key mathces, then it'll return undefined.\n* `findKeyByValue()`: Function that takes in an object and a value. It should scan the object and return the first key which contains the given value. If no key with that given value is found, then it should return undefined.\n* `flatten()`: Function that accepts an array of arrays as a parameter and returns a flattened (single) array.\n* `head()`: Function that returns the first item in an array.\n* `letterPositions()`: Function that returns the indices of the string where the respective character is found.\n* `map()`: Function that returns a new array based on the results of the callback function.\n* `middle()`: Function that takes in an array and returns the middle-most element of an odd numbered array or the two middle-most elements of an even array.\n* `tail()`: Function that returns the array without the first element.\n* `takeUntil()`: Function that returns a selected amount of elements taken from the beginning, until the callback returns a truthy value.\n* `without()`: Function that returns a new array, removing the unwanted elements from the given array.\n\n","readmeFilename":"README.md"}