{"_id":"@alotina/lotide","_rev":"1-b56ca1368d3de6bcef61a42b7195d929","name":"@alotina/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alotina/lotide","version":"1.0.0","description":"A mini clone of the Lodash library. Created for instructional purposes","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/al-lotina/lotide.git"},"author":{"name":"Al Lotina","email":"lotina.al@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/al-lotina/lotide/issues"},"homepage":"https://github.com/al-lotina/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3"},"gitHead":"af29f10bd26ba16c92c65a3f1e7d48fbdcf561da","_id":"@alotina/lotide@1.0.0","_nodeVersion":"10.17.0","_npmVersion":"6.11.3","dist":{"integrity":"sha512-r12FvIsWx0tsiYGHpiveI7CRmb6p4NC9WdaPG+f8IQPBvnBCECLd5Za+piredS9WVYR/7RmqRckx6CInETd4CQ==","shasum":"badd19958bc228b4407ee26e6bd0d6f1117de8c1","tarball":"https://registry.npmjs.org/@alotina/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":11858,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaVASCRA9TVsSAnZWagAAhnAP/i7gt5IARcKMDQfsMvgv\nkuqBjyjhJOrljqVVeCMvStlO3XPLNI+wLhEEAspIcE8QjWh3DxKqMQ7CapIe\n/nk4IBcZbyiyLZn0naEmV/XzL1/9mbwtk84IbXDFTXr1GowgQQ6BANCw0IKK\nabLd0Sqv1E8w3Ryeixc1T4MKY1sG+ptGmAAE6jQ54lRlmprveXZAjDrdrabN\nIU3dRQQGnQiWf5CnkKFrqD7eZGWZqZll4W+lqBhXdQnfFBXJ2uYRITv0DHvh\nIj8BJ5lF47KmPxj5TocDCBaxvFfClBenvZI2OPg7hCzyTyO5y8Qwjw/3qjRE\nriLpTpBXubl6tfNYKgV6wRb5C5fxKTJfjXXeVU700k5CtHaKbZz0gEAjJAKv\ncX7vSXwaWLGGpmO5P0phuew916v7gzZDbC4C52EIWx0Y08kpxdIdV8Jw4Je1\n+RuXhZvCJslbwW1fyruNq46yELQpjYb9qTKZhxRVZcHfNGK21umDwwry1r6O\n5NpxMIOPua86xA6m1+AwBGIiUhAnezeNZb1S1cwtjRwH47kjAoYv23Pb7L8m\nyiylXx71cXJLOPoUEKBqSgzmQUsmqrs9UBahTUq8bRYg5xZCsEqragwQ65Pr\ntuY8T7olGx2BPUxKn3EJTvpNjmWjHtCPfE94mn44ghz8Qrdjc0qTMFkPVYZq\nj1d9\r\n=hRxe\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCSNoy5li0ThqQIOAoDjI6D6Nlca6JD5qHl9eOnXmYe1AIhAMj/vnwi0R6e1YBJy4nIjFaQdIETVajJUWUNK6QIc54u"}]},"maintainers":[{"name":"alotina","email":"lotina.al@gmail.com"}],"_npmUser":{"name":"alotina","email":"lotina.al@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1600737298494_0.5150578771427476"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-22T01:14:58.460Z","1.0.0":"2020-09-22T01:14:58.676Z","modified":"2022-04-04T13:37:32.597Z"},"maintainers":[{"name":"alotina","email":"lotina.al@gmail.com"}],"description":"A mini clone of the Lodash library. Created for instructional purposes","homepage":"https://github.com/al-lotina/lotide#readme","repository":{"type":"git","url":"git+https://github.com/al-lotina/lotide.git"},"author":{"name":"Al Lotina","email":"lotina.al@gmail.com"},"bugs":{"url":"https://github.com/al-lotina/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 @alotina/lotide`\n\n**Require it:**\n\n`const _ = require('@alotina/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`: returns the first element in an array.\n*  `tail`: returns all elements in an array except for the first element.\n*  `middle`: returns the middle element(s) in an array.\n*  `assertArraysEqual`: asserts two arrays are equal.\n*  `assertEqual`: asserts two elements are equal.\n*  `eqArrays`: returns true or false when comparing two arrays.\n*  `assertObjectsEqual`: asserts two objects are equal.\n*  `countOnly`:  this function takes in a collection of items and returns counts for a specific subset of those items. \n*  `countLetters`: returns a count of each letter in a sentence.\n*  `findKey`: scans an object and returns the first key for which the callback function returns a truthy value. \n*  `findKeyByValue`: returns the first key in an object that contains a given value.\n*  `letterPositions`: returns all the indices in a string where each character is found.\n*  `map`: returns a new array based on the results of a callback function.\n*  `takeUntil`: removes elements from the beginning of an array until a condition is met.\n*  `without`: returns a new array with only elements from a source array that are not present in an itemsToRemove array.","readmeFilename":"readme.md"}