{"_id":"@ayo-show/lotide","_rev":"2-46352eb90b3f28a88d7aa89b3c754df6","name":"@ayo-show/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ayo-show/lotide","version":"1.0.0","description":"A mini clone of lodash library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Ayo-Show/lotide.git"},"keywords":[],"author":{"name":"Ayowonuola Sowunmi"},"license":"ISC","bugs":{"url":"https://github.com/Ayo-Show/lotide/issues"},"homepage":"https://github.com/Ayo-Show/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"7c92ea74f536662013b5944b739ad7db2b373adf","_id":"@ayo-show/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-kkZ7lzqZV3VRMAP3QpRGi3td8ZlFkUP+EoaKy0564k7JQjbDBnBf1fzeDBKr994Q0RqIn1h9USjxJApUBRK/qQ==","shasum":"538359a96420d81a17c0d2dd511e5cf18c67f233","tarball":"https://registry.npmjs.org/@ayo-show/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":16331,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzHAHCRA9TVsSAnZWagAAMlQQAJbTfD2rdjrT3bwB9dUZ\ni5hVbzPPz8XY4nZm9WssQYWXAFKd5U4Y8t4UIkzMGC8hB4w0hRv8wG/J0yYe\nT6lAwbx1F4t9yXdALMgWpcfPTvw76z6KVK2bIQS+Uvs9RPBbOU3C0f0LrHCa\n3c707yKati1bae62StOBAbliB7iF8y7of0Tt1IbmAQzFcWjmBDJNRff59RN2\n7doQW0PL6/h/JBzeW5zz7CVwtMxOhktWGXsL7NZWh+PO7GabdOxC7KY7Vmp5\n4RWBY6fjTezGq2+0DIs4TjfxpksvxLJ7EpQsngNEltqMwafeyz69ZLO7eX97\nbgFwGOiFjwfyoS8vI3+6VOnAoPCfKoqd2+2ik5YpfdtjdJxzvcW4Bp0AY+90\nFcSTcTti9g+5nPElTc4hsaYRsarEyO5xlTs0Aeoh6X8+8vRHdLQwvXwWMB3f\nmeoIsz6nccdMTwkEH2fqC6LxIRe5YKN18c3r7AoxTFJvEDwQqfYTtasgaWW/\ne35VopH8J66ehVSbJUKiYuzc+fE3I8vf4rnFMclLN7j/urEo/Cp95lL1jkCR\nuCoYmSTiYT2q9AVFXGm+PVNojj1GnRHVwVRKrDlYOd2AQnNoaBR2r0aCZGQU\nV4Rk72cT6Y4cOjntMKbBSm5SScOfICW09m8vzi9UJEuXKqkLhRtgpuRFJxEm\nOF48\r\n=5rIo\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCgGY8AFwTkGXTYjSX4Y9IIqHBWS3ZlNkZN4+XHin3wuAIhAPmUMPsjYV76V5EfPL5L292UthMNVMhRwMwvqzu2C6SC"}]},"_npmUser":{"name":"ayo-show","email":"sowunmi30@gmail.com"},"maintainers":[{"name":"ayo-show","email":"sowunmi30@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1635863060179_0.26644860998579856"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-02T14:24:20.128Z","1.0.0":"2021-11-02T14:24:20.304Z","modified":"2022-04-04T17:14:36.082Z"},"maintainers":[{"name":"ayo-show","email":"sowunmi30@gmail.com"}],"description":"A mini clone of lodash library","homepage":"https://github.com/Ayo-Show/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Ayo-Show/lotide.git"},"author":{"name":"Ayowonuola Sowunmi"},"bugs":{"url":"https://github.com/Ayo-Show/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 @ayo-show/lotide`\n\n**Require it:**\n\n`const _ = require('@ayo-show/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 which accepts an array as an argument, and returns the value at index 0.\n* `tail`: A function which accepts an array as an argument, and returns the values of everything but index 0.\n* `middle`: A function that accepts an array and returns the middle values of the array.\n* `assertArraysEqual`: A function that compares two arrays, will assert if two arrays are exactly the same.\n* `assertEqual`: A function which accepts two primitive data types as arguments: actual outcome and expected result. The function then prints to console whether the outcome matches the expected result with an assertion statement.\n* `assertObjectsEqual`: A function which takes two parameters, the actual object, and the expected object, and returns an assertion passed or failed.\n* `countLetters`: A function that will count the number of letters in a string, not including spaces.\n* `countOnly`: A function that accepts an array or objects and will count only the values that are specified.\n* `eqArrays`: A function that will determine whether two arrays are the same.\n* `eqObjects`: A function that determines whether two objects are equivalent.\n* `findKey`: A function that takes in an object and a callback, and returns the first key for which the callback returns a truthy value. If no key is found, then it returns undefined.\n* `findKeyByValue`: A functiion that will find a key using a value and an object.\n* `letterPositions`: A function that will find the index positions of a given letter within a string.\n* `map` : A function that will apply a given set of instructions to each element in an array.\n* `takeUntil` : A function that will collect items from a provided array until the callback function provided returns a truthy value.\n* `without` : A fuction that will return an array with the given values excluded from it.","readmeFilename":"README.md"}