{"_id":"@ahhreggi/lotide","_rev":"1-80bc2a439f496a470d33dde09182ea23","name":"@ahhreggi/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ahhreggi/lotide","version":"1.0.0","description":"A mini clone of the Lodash library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/ahhreggi/lotide.git"},"author":{"name":"Maria Regina Sirilan"},"license":"ISC","bugs":{"url":"https://github.com/ahhreggi/lotide/issues"},"homepage":"https://github.com/ahhreggi/lotide#readme","devDependencies":{"chai":"^4.3.3","mocha":"^8.3.1"},"dependencies":{},"gitHead":"b3d0d268bc5265f4fe0bac0c982eaf1b576513c8","_id":"@ahhreggi/lotide@1.0.0","_nodeVersion":"12.21.0","_npmVersion":"6.14.11","dist":{"integrity":"sha512-M5pRaQP0c388cYS15s3TJwDtEg/d8OSJRjSXAaf2lFEzvmkG/PR0/YXSoOLehITb9IsF1kO7e1gjGtEEb675hA==","shasum":"94ef26c210f7dca961b86904b15b19de0abae97f","tarball":"https://registry.npmjs.org/@ahhreggi/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":17021,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgRoaNCRA9TVsSAnZWagAAatYP/1BlEs7RLNgG4+K3sc4j\nG1gxtaUZvA8nql7SzEjWiglS480IR0wc8+agp78GNouexdhMzQHc56U/wYnH\nqQZAPEPuNMIqF8Adew2A+cfrx2LwYUz6aI1jupB/RzS0TVaeiI5zojBq5Myw\nPomWWvG7Yhlw9EogdRsKDS/V/ekFIcdjjstA1X0tRlDEDHE/h/UHYhmdXqE0\nbjstb0IZ/he6s+n+mgzvfJ7KFnQMasGIJICdnO3QKMYA0RFDBh5t7Y9N1F8Q\nCSMYDLPrnQx4kd9pdB+cYVN2aJ7wBVxs+Na060vpc43XqFXWH5dc00Ay5cFN\n44TBBK5w74pKy2gLarS9gBOfagTNgmB2TLfyqAB4BHzZNPOcMsKFS/Xzhp1I\niF5zgt0IUsY1S3YQ5Zyy0vETMkI8/3XiiRsW2aLU3YpGwe5Z809wG+YL0Ytz\nv98mdpHPanaJbpEGIcy+TD2Y/1YSQQ/nOtp5h7oP31qaKdkVpUjNnWJZKiu2\nCLDsF+qyubxLeKOeXNSodSkrOd19X/YnKK9YjhPHfbi3Pr0kRJYwSyqwJrco\n6xWdzJNm6xNQXUpJGlNoGqlMCzopxcXSqxJRZJrSd5n/lzETlQARmh4WTjwL\nhNiLxKQMSZ53Mv9WjvCey+9AWPQY4SRSWGIHPpPZng+BfEa6lavMoDTgfZOd\nX5Ho\r\n=g4yP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCwZuIy89zFeAdjFrlrVsjjso8U51mDGIbJt84PkPEw9AIhANBeiStTYrvbxtdjhDdt0/9m20BD0hi+CSE2LeqL652x"}]},"_npmUser":{"name":"ahhreggi","email":"ahhreggi@hotmail.com"},"maintainers":[{"name":"ahhreggi","email":"ahhreggi@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1615234700500_0.8576555534847266"},"_hasShrinkwrap":false}},"time":{"created":"2021-03-08T20:18:20.466Z","1.0.0":"2021-03-08T20:18:20.700Z","modified":"2022-04-04T12:12:15.627Z"},"maintainers":[{"name":"ahhreggi","email":"ahhreggi@hotmail.com"}],"description":"A mini clone of the Lodash library.","homepage":"https://github.com/ahhreggi/lotide#readme","repository":{"type":"git","url":"git+https://github.com/ahhreggi/lotide.git"},"author":{"name":"Maria Regina Sirilan"},"bugs":{"url":"https://github.com/ahhreggi/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 @ahhreggi/lotide`\n\n**Require it:**\n\n`const _ = require('@ahhreggi/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(array1, array2)`: Evaluate array1 and array2 then log the results\n* `assertEqual(value1, value2)`: Evaluate value1 and value2 then log the results\n* `assertObjectsEqual(obj1, obj2)`: Evaluate obj1 and obj2 then log the results\n* `countLetters(string)`: Return an object containing character counts for each character in string\n* `countOnly(allItems, itemsToCount)`: Return an object containing instance counts for each element in allItems\n  - `allItems`: an array of strings (e.g., `['1', '1', '2']`)\n  - `itemsToCount`: an object of elements with a boolean value indicating whether or not it should be counted (e.g., `{'1': true, '2': false}`)\n* `eqArrays(array1, array2)`: Evaluate array1 === array2\n* `eqObjects(obj1, obj2)`: Evaluate obj1 === obj2\n* `findKey(object, callback)`: Return the first key in object for which the callback function returns true\n* `findKeyByValue(object, value)`: Return the first key in object with the given value\n* `flatten(array)`: Return a nested array as a single-level array\n* `head(array)`: Return the first element of array\n* `letterPositions(sentence)`: Return an object containing the indices for which each character in sentence is found\n* `map(array, callback)`: Return a new array with the results of calling the callback on each element in array\n* `middle(array)`: Return the middle element(s) of array\n* `tail(array)`: Return an array containing every element after the head of array\n* `takeUntil(array, callback)`: Return all elements of array until an element for which the callback function is applied to returns true\n* `without(source, itemsToRemove)`: Return a new array with elements in source (array) that are not in itemsToRemove (array)\n","readmeFilename":"README.md"}