{"_id":"@abdulbasit79/lotide","_rev":"1-461432a585e5e82369100ca186127432","name":"@abdulbasit79/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abdulbasit79/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"index.js","scripts":{"test":"mocha"},"author":"","license":"ISC","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"2ed39440ec5705ba495db349291c955085e04ce7","_id":"@abdulbasit79/lotide@1.0.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-aFW8EVxe8LVQwt0SFQQ5cdk9QFcnQlKo+NBRmyPWaiQBf+PF+jjab10Iubb/uzEx/BSqDQxFGqpfKYPwvsnkfg==","shasum":"81a997be02161cf4c7f59e8173fc07f921cb4249","tarball":"https://registry.npmjs.org/@abdulbasit79/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":19361,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhp+iKCRA9TVsSAnZWagAApuoQAJrZrcByoKfWHTBCICA1\nXfgK5X9Z05ebGRnZoYTlb8wBlh34WjB2BkBdVj3XswVARrFdo8+0yio7R9aV\ndeMoaz4LFb+Ue7EEuWEQ3gaoTOpqOOLw1ZPA25k6Ch4BtF2t6/IskKcytuUQ\nHTyjvDubmse7U9DDWJ6qcDrzU14f6Jb6GtQdR+OT49AtchEjKFLR3PQD6mE/\nsT2FIvBhAZM6B+9nIgneZiYzzfxuYa9d0aQlMSL6BNHc0Y1E7L8KprJd2YGC\n2ZP1+SyCDutIcw2p61YV1BWTDRRmOn7+yzRG5Ikdar21Nal+8YjY8fvXsU42\n4ht5QcSYiR2uwz19w0v74dtgrCAdzWvZNeS6sbTYld4tswtOtMi8XgRA8OPV\n6ZoYRaXNwpmJ4yYLgZCR4yBCTTeRt+7ythK+oJ17LS8So04RPtfOnbSI9aPX\n/M9sGBGkC+krsfItUGLEd71wwyta/I7uA5on+3ou+30b2XqBcP84UZK5N4Yw\nRwzi2G/eh5X11V10fvRO4QjMtbv7SOJ1uoT8ukNJisVZ7FLc8SDs1LKhieyL\ndLXGV2i0x8jFtv5Ao4jh6aRa41DhSVWsiJaubMBktLYUS9fc+NS5kHhlJirM\n9Qu1DhDCBBmA0J8GISNgrJJGxqb4PuWu7TnQkbh1xDSrjsiM1JoKi/98OHQp\nKX+d\r\n=/PAj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIE/j4O2L+ee0k0p7DhZfFQ7cE3jdTnuRmpwbeYk7I7/BAiBSpg/kZGW/J0ipbXUVW974JpKCa542eSNAeZkUeyD9VA=="}]},"_npmUser":{"name":"abdulbasit79","email":"abdulbasit700@outlook.com"},"directories":{},"maintainers":[{"name":"abdulbasit79","email":"abdulbasit700@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1638393994318_0.992526188903835"},"_hasShrinkwrap":false}},"time":{"created":"2021-12-01T21:26:34.274Z","1.0.0":"2021-12-01T21:26:34.482Z","modified":"2022-04-04T10:58:33.049Z"},"maintainers":[{"name":"abdulbasit79","email":"abdulbasit700@outlook.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","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 abdulbasit79/lotide`\n\n**Require it:**\n\n`const _ = require('abdulbasit79/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(...)`: assertArraysEqual takes two arrays and take two objects and compare it.\n* `assertEqual(...)`: assertEqual The assertEqual function compares the two values it receives and prints a message indicating whether they are equal.\n* `assertObjectsEqual(...)`: assertObjectsEqual is a function that compares two objects and then console.log  a message to the console that is appropriate.\n* `countLetters` :this will take a sentence as a string and count each letter in that sentence.\n* `countOnly` : This function will return an object with counts for all of the items provided in the input object.\n* `eqArrays` : The eqArrays method takes two arrays and returns true or false depending on whether they are identical.\n* `eqObjects` : The eqObjects method takes two objects and returns true or false depending on whether they are a perfect match.\n* `findKey` : The findKey function accepts an object and a callback as input and returns the first key for which the callback returns a truthy value.If there is no key it comes out as undefined.\n* `findKeyByValue` :The function findKeyByValue takes an object and a value and returns the first key that contains the provided value. If no key with that value is found, undefined should be returned.\n* `head` : this function returns the first item in the array.\n* `letterPositions` :All the indices (zero-based places) in the string where each character is located will be returned by the letterPositions function.\n* `map` :The map function iterates across the specified array and calls a callback, returning a result based on the callback condition.\n* `middle` :The middle function takes an array as input and returns the middle element(s) of the array.\n* `tail` : The tail function returns the \"tail\" of an array, that is, everything except the first item (head) in the array.\n* `takeUntil` :takeUntil will keep collecting elements from an array until the specified callback produces a truthy value.\n* `without` :Without a function, subset of a specified array will be returned, with undesired entries removed.","readmeFilename":"README.md"}