{"_id":"@aolvera/lotide","_rev":"1-84ea7d112b18edebf9e3a5c367b7f70b","name":"@aolvera/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aolvera/lotide","version":"1.0.0","description":"This project is a mini clone of the Lodash library. It was created and published by me as part of my learnings at Lighthouse Labs.","main":"assertArraysEqual.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","mocha":"^8.2.0"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/soccermind/lotide.git"},"author":{"name":"Alberto Olvera"},"license":"ISC","bugs":{"url":"https://github.com/soccermind/lotide/issues"},"homepage":"https://github.com/soccermind/lotide#readme","gitHead":"6130d1d535ce225c5f17dba0a205ff67f9d439cb","_id":"@aolvera/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-+oxmC3TV32YpUaKCBfKnHne8T7ify19iSgz5lN2dUYt5Qs9byjevEucYQ5SxZ2RBgC6IgdVetzHDzZoqL2SR3w==","shasum":"40bea2233e0000c677412316ac3cbd0547358601","tarball":"https://registry.npmjs.org/@aolvera/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":23381,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfoJToCRA9TVsSAnZWagAA2DYP/RH8Iv7xzMy5DWT6vSOy\n00TLMqoJ4LAOK9n7IUM1nXTuYgeGJTPJE1AgwVXAm0/nLkKvUUMzmDVtVibn\ny32y6Xyd2joezDfg5yoV1gfkncG6KZVhfVYw6O/hsKfoe/3wOeVe5HKqqojK\nu6WBPblON6tD0sQ7WoXqwQwasGgfYmEq3EM5Oic2mJMOUk0tL6FxDDELMrwj\nNmMOjiEQq/rv2flyRFQXSFkXryQEF/9WkEQGc6eBCD8LZ5dqM0K1A4ECqJzW\nIMaKjssIulqA/XJrsKcCCt5v1yzLwwydhmaloRRl7adEApBFqiaAasPzEgOy\nC2y+V//oo1xkO2PAHygds4vrCyjnxl1jj1Qpaf4BNu82pB0hfQhaqb9zzf6h\nNZbqu/Uq/zqXa1SfuKoQf5VKdu36hZNe7yjrLHwbxuxKKZ5em3OoWtjZVInC\nKV5dzNqD6yOqSEu/3iZQQSFSsMgaUujK3hbvFDyukGsE14bxSzLAMuPr3vl4\nYW0lcXaNuj8DAlnM9LK6Rvsq0McCPigVex/tcWKhl9GighqU+SkhP3DkhpuU\nOKAEqzTWaRSMn5uUSDGHovEGAy7QlpC09HsE5bg1Ud4hIdKP2BrK+dIUb8+m\no3Vgt9oSB5F5rkM6M83HPAotKLvU31YB9a5E+7CBVOYznc9aUznSbAv66N4+\nf+EM\r\n=GIdv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCd/td8vPHsPQoKuk0e4pGZBKqiMkYlnlN+GaysCeSeBwIhAKfmeBlN3feJLiMi93aIGIGGQs2gKntazj6uLLKVWRDB"}]},"maintainers":[{"name":"aolvera","email":"albol70@yahoo.com"}],"_npmUser":{"name":"aolvera","email":"albol70@yahoo.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1604359399872_0.30005832806296606"},"_hasShrinkwrap":false}},"time":{"created":"2020-11-02T23:23:19.841Z","1.0.0":"2020-11-02T23:23:20.001Z","modified":"2022-04-04T14:29:04.541Z"},"maintainers":[{"name":"aolvera","email":"albol70@yahoo.com"}],"description":"This project is a mini clone of the Lodash library. It was created and published by me as part of my learnings at Lighthouse Labs.","homepage":"https://github.com/soccermind/lotide#readme","repository":{"type":"git","url":"git+https://github.com/soccermind/lotide.git"},"author":{"name":"Alberto Olvera"},"bugs":{"url":"https://github.com/soccermind/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 @aolvera/lotide`\n\n**Require it:**\n\n`const _ = require('@username/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(array)`: returns the first element of the input array.\n* `tail(array)`: returns an array with all elements of the input array except the firt one.\n* `middle(array)`: returns an array with the middle element(s) of the input array.\n* `countLetters(string)`: returns a count of each letter in the string.\n* `countOnly(array, object)`: returns counts for the items conatined in the input object that exist in the input array of strings.\n* `eqArrays(array1, array2)`: returns true if both arrays match perfectly or false if they do not.\n* `eqObjects(object1, object2)`: returns true if both objects match perfectly or false if they do not.\n* `findKey(object, function)`: returns the first object key for which the callback function returns a truthy value.\n* `findKeyByValue(object, value)`: returns the first object key for which that contains the given value.\n* `flatten(array)`: returns a flattened version of an array where all the nested arrays are removed and their elements added to the first-level array.\n* `letterPositions(string)`: returns an object containg lists of the indices in the string where each character is found.\n* `map(array, function)`: returns a new array based on the results of the callback function.\n* `takeUntil(array, function)`: returns a slice of the array starting from the begining, and ending when the callback function returns a truthy value.\n* `without(array1, array2)`: returns a new array with only the elements from array1 that are not present in array2. ","readmeFilename":"README.md"}