{"_id":"@anastassia_tsvetkova/lotide","_rev":"2-0b3d7aaed0730e9882dad032d7e146f5","name":"@anastassia_tsvetkova/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anastassia_tsvetkova/lotide","version":"1.0.0","description":"A clone of the lodash JavaScript library used to practice creating various types of functions using JS","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Nastik2021/lotide.git"},"author":{"name":"Anastassia Tsvetkova"},"license":"ISC","bugs":{"url":"https://github.com/Nastik2021/lotide/issues"},"homepage":"https://github.com/Nastik2021/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"dependencies":{"my-package":"^0.0.0"},"gitHead":"64dee4ed0b637ae38a775cd748f71a2d4a9d0a0a","_id":"@anastassia_tsvetkova/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"8.0.0","dist":{"integrity":"sha512-2p8JOkhhfsDPvgDp1dAkch1PjODSIiQMtgCzE3UCS6uSvh57qu4M9198SwO3c4I2ivkUnK9Yvv8kUsPK2jquLQ==","shasum":"e3f275cf3b73b6f59b304a8f7375b71ecf8e2e38","tarball":"https://registry.npmjs.org/@anastassia_tsvetkova/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":17038,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwx/mCRA9TVsSAnZWagAAAp4P+QH/sJnNj17WgufoaBA5\n0lVn9jQ/cdeUH0IDaQV2zBE9WtnzcEWtK7tFxpL7HY9qmkwSSSRWJedrGLQA\nESDDtkRWOJEsg/5IEK8nbFrZAVZOyyv1x7rBmV5oSSDCIDlfGVHZUZVNjVkE\n+AqY9CT5+knk0B14lPQOZysT/eF2b+5xLza44XQCGG4eoNZDcr5XJjIEoNww\nym7NmuU2CzNEzfS1TUbodEv4fNl0xn9rFAsSx4ec9l+zG7Wbb0CYB8obW76c\ny5GHajFjutho3R1WR+kwkyiU+rDUZy60LNpnxx7GDcO+b3wLbx4NGSk5g1JH\nv29nJe6IHtJBPEauONhW0udITmyDN8jrtTbZ8CCYK2AxkcLvQS7rld36TTaD\nndPnudGtsrNC/ihvKgZILh8X1EQIU82XLU9amjRHaL8qg4Hn5nGvsECsZiRZ\nVFt82mLWHHS2EA41SEpG8mKoo4RJwDXpzo4XW3DEe73/oAKj3KhKd32sd0Rz\n5QQe9T3JfJ21pn3zDul/8bg6bMfO1DBnrrs7q3grU37x8rHlX4idv2PD7v0l\n4+iR/vbg6YQMlZdOkEhboJA1nqN4DPpUXcC0Ja36zurQCH5+nyA9HxMEOllV\nyIO0QM3yOqTfFQjs+l/jxBMWNIQzPyrWGG1ILNDubroxrtSUe1unXyJqYs7u\nueu9\r\n=u/Na\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDUe3JCWgTzJHTdEy3OdblWRVxBYx+A6R75omBB6PP+3gIgDfF1YcPt9d24QcboRlQOIyV0lLZ4lR6C3ouzNEsPOWI="}]},"_npmUser":{"name":"anastassia_tsvetkova","email":"nastiatsv@gmail.com"},"maintainers":[{"name":"anastassia_tsvetkova","email":"nastiatsv@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1635823468328_0.8458906114560931"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-02T03:24:28.263Z","1.0.0":"2021-11-02T03:24:28.515Z","modified":"2022-04-04T13:55:35.191Z"},"maintainers":[{"name":"anastassia_tsvetkova","email":"nastiatsv@gmail.com"}],"description":"A clone of the lodash JavaScript library used to practice creating various types of functions using JS","homepage":"https://github.com/Nastik2021/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Nastik2021/lotide.git"},"author":{"name":"Anastassia Tsvetkova"},"bugs":{"url":"https://github.com/Nastik2021/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 @anastassia_tsvetkova/lotide`\n\n**Require it:**\n\n`const _ = require('@anastassia_tsvetkova/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`: this function takes two arrays as input and prints assertion passed if two arrays are the same and assertion failed if not.\n* `assertEqual`: this function takes two arguments that are primitive type and pritns assertion passed if two arguments are the same and assertion failed if not.\n* `assertObjectsEqual`: this function takes two objects as input and prints assertion passed if two objects are the same and assertion failed if not.\n* `countLetter`: this function takes a string and returns the object that contains each letters as key and the he number of key occurrences as value.\n* `countOnly`: this function counts the number of the items that are passed by user and return the object that contains item as key and count as value.\n* `eqArrays`: this function returns true if two arrays are the same and false if not.\n* `eqObjects`: this function returns true if two objects are the smae and false if not.\n* `findKey`: this function takes an object and a function that takes an object. this function returns a key when the arugment function returns true with the object.\n* `findKeyByValue`: takes an input object and value and returns the key that contains that value\n* `head`: this function takes an array and returns the first element in the array.\n* `index`: this exports three functions(head,tail,middle) simultaneously.\n* `letterPositions`: this function takes a string and returns letters with positions in an object type.\n* `map`: this function takes an array and function to map the array. It returns a mapped array.\n* `middle`: this function takes an array and returns the element in the middle index.\n* `tail`: this function takes an array and excludes the first element.\n* `takeUntil`: this function takes and array and a function and returns the array where its elements are deleted when the callback function returns false.\n* `without`: this function takes two arrays and return a new array that includes the elements from both first and the second arrays, but any repetitive elements are deleted.","readmeFilename":"README.md"}