{"_id":"@annnnag/lotide","name":"@annnnag/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@annnnag/lotide","version":"1.0.0","description":"a library of lotide functions","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Anaaag/lotide.git"},"author":{"name":"ana"},"license":"ISC","bugs":{"url":"https://github.com/Anaaag/lotide/issues"},"homepage":"https://github.com/Anaaag/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"58f5360d594463d5013fd2837d6467ba48d1fe17","_id":"@annnnag/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"8.4.1","dist":{"integrity":"sha512-nWpj6TZgVvHMqlikcJznXt8aUZBWhhf0ug7IE6R5SVFuAMkPsPLgBJ48Nsp+Fq1tz/B8T9m0dEMOup4OO70sCw==","shasum":"c833a1050c1fb547c5db209184312c9cb7c1d774","tarball":"https://registry.npmjs.org/@annnnag/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":20142,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAqCHs1zZi4YT+wFn3mPAo98Sk0Tgdgw3RAfyR2XhaxcAiByufj1yZTnmXAkw7TqFZhOj5pJ4J7fzslS94ci7CCQiQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiVfXoACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp6HQ//VIKkBf4ULK1CgIei2SqsHyg636FxozXDDnfmPy2/AbJz2n12\r\nSKjsoo3PKZCsc/GChg9n9NgPciizAuBQAAKlHj+AhXULgwcRLI3L6qBx8e0G\r\navYE2JzWDcY87D25ccHC85noAC3UHtyyzEFvh4Oxozx7evJaB3IVUCbvuMGj\r\nsMHtz9mgSLTJCtEe1+hKVCN/b1CjdIqOdNWJL1U/yI9poIT2t6HPm8UPgA1x\r\nUIDrPj0Xg8I6Ztzg//GMRGLKN9GKv8bFaiAK8YMclZpGPNrTRV+BsXdDdnIf\r\n2P4NIxKv2f8OKmsiaomk5urhHTVTWqcOU5GfwROGQcT/Dgw0nm05LFxWuEn8\r\n76JsHMnF1i4ofAezvi2HkSx+u+aFoh9ssZ6F5X4klYMTePwWA5MsP3eZSyQ/\r\nv7rjZ+DodQ4jTceJ8c3RNk5gmhmGWWXR+d6RtgzR7/JctBty1PqQbEGDbpsr\r\nNT8xfXImbivMrnQyMyHevmb6e8eFgK5yxAqFC2HsCO/uBaSfSA5pATTAz6fE\r\n/00sEmv6e0LBEc6y8adyVOiDMFHGs/EVPM2WvSlEay3DwIthbye3J0BhpgxE\r\npwRhQ3qxpf/HajxgkrBvF4jRr22q6usgLv+nBupzne4RlZHhSMFrq/+tngQL\r\nUzLjSkgQ5/VBCbslNf/gWujYetmoomEa3AY=\r\n=3p7I\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"annnnag","email":"agarc20@outlook.com"},"maintainers":[{"name":"annnnag","email":"agarc20@outlook.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1649800679813_0.04660099143753471"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-12T21:57:59.759Z","1.0.0":"2022-04-12T21:58:00.039Z","modified":"2022-04-12T21:58:00.179Z"},"maintainers":[{"name":"annnnag","email":"agarc20@outlook.com"}],"description":"a library of lotide functions","homepage":"https://github.com/Anaaag/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Anaaag/lotide.git"},"author":{"name":"ana"},"bugs":{"url":"https://github.com/Anaaag/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 @annnnag/lotide`\n\n**Require it:**\n\n`const _ = require('@annnnag/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(assertArraysEqual)`: A function that will take in two arrays and compare their values to test if they are equal, will then print out a message of either success or failure.\n* `function2(assertEqual)`: A function that compares two values (primitive types) and prints out a message of either success or failure.\n* `function3(assertObjectsEqual)`: A function that will take in two objects and test if they are equal. It will then print out a message of either success or failure. \n* `function4(countLetters2)`: A function that will take in a sentence (string), and return a count of each of the letters in that sentence. \n* `function5(countOnly)`: A function that will take in two arguments an array and object, it will return an object containing counts of everything that the input object listed. \n* `function6(eqArrays)`: A function that takes in two arrays and returns true or false, based on a perfect match.\n* `function7(eqObjects)`: A function that will take in two arguments, two objects and return either true or false, based on a perfect match.\n* `function8(findKey)`: A function that takes in two arguments an object and a callback. It will scan the object and return the first key, to which the callback returns a truthy value.\n* `function9(findKeyByValue)`: A function that will take in two arguments an object and a value. It will scan the object and return the first key which contains the given value.\n* `function10(head)`: A function that retrieves the first element in an array. \n* `function11(index)`: An object for all of our lotide functions. \n* `function12(letterPositions)`: A function that will take in a string and return all the indices in the string where each character is found.\n* `function13(map)`: A function that will take in two arguments an array to map and a callback function.  The map function will return a new array based on the results of a callback function.\n* `function14(middle)`: A function that will take in an array and return the middle-most element(s) of that array. If array only has one or two elements will return an empty array. \n* `function15(tail)`: A function that retrieves all elemements except the first element of an array.\n* `function16(takeUntil)`: A function that will take in two arguments, an array and a callback. It will return a slice of the array with elements of the array taken from the start, it will keep going until the callback returns a truthy value.\n* `function17(without)`: A function that will take in two arguments a source (array) and a itemsToRemove (array). It will return a new array, removing unwanted elements. ","readmeFilename":"README.md"}