{"_id":"@bita-janzadeh/lotide","_rev":"1-c3ac6d209be7b225f42a655d2e8e6e45","name":"@bita-janzadeh/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bita-janzadeh/lotide","version":"1.0.0","description":"A student's remake of the lodash JS library ","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/bitaj95/lotide.git"},"author":{"name":"Bita Janzadeh"},"license":"ISC","bugs":{"url":"https://github.com/bitaj95/lotide/issues"},"homepage":"https://github.com/bitaj95/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"0cc82274d7fe77cc4679672de41d96de8f27585f","_id":"@bita-janzadeh/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-vryu91kgsPNNWKOgvIurQAQAAYNCsZ11CkehCC+kThaw99i4rEIT9BFH9TuSOG3ZXT/RZMiabUWP+mNQ4AA10A==","shasum":"855fa99a8db68b85bd311b9fbaffe8f65227e829","tarball":"https://registry.npmjs.org/@bita-janzadeh/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":25925,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhpWSYCRA9TVsSAnZWagAAYLgP/1thWVBjdMgCrOwq4zpV\n1EBq/LPs8R0GjpyNiAM6lCq3G27oElLC1QORkMCqnCPE1rFW8C3FaGDnlOuN\nMV/97UJ8yk3QBY6jMn9COloKU4Zfn17OGDdf/DEOVSqngBwZoCdSdrIoBY7c\n/+4B+0StaKFA6EIhJ44ZCoebsVgNRqAFVfsBWMR0ADFpY7ibXdXN/VOsi7Ml\nsDru4vdZbTY/SnbUy8JFCHeoaEvN/KraNPrIvyM6rQh0yk8PzAX4898KHXr8\nKwIkJfM+X8nUUSB1tCAmCCM2Wt3qUGJwK8tLVTXsWXxtOXULXYrpwmxWGjdS\nvNPomtLK5xj+//OcN7AkqEJcF77lXaD8VS5DwqST2Z8hHtO23GjEvCTBL1RC\ne4J3LO6lD6CG29bGkX0N3jafYi7+KkVzuub7XaSLws6aduPss21x4ZhrCb7u\nxNiKSl4SKej81DV+fd6nFPOHWFT/j/FOhm4pgL3fZ4ADD2iu+xIHtoAz15w5\nN8IetT5iKZnNgLYCTHWQhqbacqvPZt4gboliC8hM4fOPuYTJkZCBcXvy6Hvd\n/aFurvKXdZLXlo083kcjfe9tpYU6fw38Z89gt1JVj6WyWSNf3jcBrGRr6lDu\nZO0+iEMrPCiKRt7W1M4JmiYGoOVwY4pY2Xo7VlP66zsPQBDBmJsIdn/njuvf\nP0Ja\r\n=Bb9f\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGZgiu6Z/947VyYJNandyaMTa2vX1nMnoxkpP7t7DS0mAiAMPfHVDstEL48eUKcMSFRy56lcArsrI0ajgVwGQTYUYQ=="}]},"_npmUser":{"name":"bita-janzadeh","email":"bita.janzadeh@hotmail.com"},"maintainers":[{"name":"bita-janzadeh","email":"bita.janzadeh@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1638229144093_0.7920932765352315"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-29T23:39:04.050Z","1.0.0":"2021-11-29T23:39:04.259Z","modified":"2022-04-04T18:56:41.732Z"},"maintainers":[{"name":"bita-janzadeh","email":"bita.janzadeh@hotmail.com"}],"description":"A student's remake of the lodash JS library ","homepage":"https://github.com/bitaj95/lotide#readme","repository":{"type":"git","url":"git+https://github.com/bitaj95/lotide.git"},"author":{"name":"Bita Janzadeh"},"bugs":{"url":"https://github.com/bitaj95/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 @bita-janzadeh/lotide`\n\n**Require it:**\n\n`const _ = require('@bita-janzadeh/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* `head`: a function that returns the first element from an array\n* `tail`: a function that returns all elements except for first element from an array\n* `middle`: a function that returns the middle element(s) of an array\n* `assertArraysEqual`: a function that asserts if two arrays are equal\n* `assertEqual`: a function that asserts if two values are equal\n* `assertObjectsEqual`: a function that asserts if two objects are equal\n* `countLetters`: a function that counts the number of letters in a string\n* `countOnly`: a function that takes in an array and object, and returns an object containing a count for the items specified\n* `eqObjects`: afunction that compares two objects\n* `findKey`: a function that takes in an two parameters: an object and callback. It will scan the object and return the first key for which the callback returns a truthy value.\n* `findKeyByValue`: a function that takes in an two parameters: an object and callback. It will scan the object and return the first key that contains the callback value.\n* `letterPositions`: a function that takes in two parameters: a string and letter. It will return the indices where each character is found\n* `map`: a function that creates a new array with the results of a callback function executed on each element in the  array\n* `takeUntil`: a function which will keep collecting items from a provided array until the callback provided returns a truthy value.\n* `without`: a function that takes in a source array and removeArray, then returns a new array with only those elements from source that are not present in the remove array.\n","readmeFilename":"README.md"}