{"_id":"@abemsi/lotide","_rev":"1-160ece2d2f1fb7413b1063503c96f223","name":"@abemsi/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abemsi/lotide","version":"1.0.0","description":"A clone of the lodash JavaScript library to practice creating various types of functions using JS.","main":"assertArraysEqual.js","directories":{"test":"test"},"dependencies":{"chai":"^4.2.0"},"devDependencies":{"mocha":"^6.2.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/abemsi/lotide.git"},"author":{"name":"Amy Bemister amy.bemister@gmail.com https://github.com/abemsi/lotide"},"license":"ISC","bugs":{"url":"https://github.com/abemsi/lotide/issues"},"homepage":"https://github.com/abemsi/lotide#readme","gitHead":"145eba633d4252328dd887be10446ca195f00266","_id":"@abemsi/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.11.2","dist":{"integrity":"sha512-N6kLBuKRGlh0o1NknCeeFjEUjuJnelOKft1MQJCUVH7GOA8jnnDZ7l4x7/jE/e0aOH2y7WN/EpkyX1d8x+i4vw==","shasum":"c7e028cc2bd7f9eb24e1751abdbbe545d098348e","tarball":"https://registry.npmjs.org/@abemsi/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":16655,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdrmRWCRA9TVsSAnZWagAAEhIP/igxpDdwboA6C7l7LAQB\nDUSCho/HocMjCNaU+qfLCoh5OB+81QITGbMxRqoTgIbLG6B5nsGpVv/6nv2A\nxnb3SlMo31/mL/I40uMJrSTtl9jZXlWmeD1AfbqNGJtGRWMCAs1truuNuwdS\n84WB58LpYzmiIB5gtN9/Gl0Q8rl31fj+I4UBV+q89sn5VLhxdcTEGc5viu30\nWH0h5dWVEO8KQDGqac+7QXfFmgHCOFqNWz1q7ZuJv0VkKoHYHOs77RgG1uQF\naL4+T565RPeN9qc9T+Kve92pa/xkxrelsxs9JcNQpInjxg+tjUCC5G1WX5dN\nClpkYvtUleh2KpMTGzmQVUKZCjp3zJli8mhFFJQ+DeUNyRAQ8cJByEGYQNDq\niLK2sD9rY6L1faHsBx1MmeMFB8jrwyEmzO4mu7jvwz5GxlL8n/OFV3PlXY4s\n76ZHxrClXt5FBylKvFZGp4s94si3CGCZ/NNfx1LoSoCRWr9ps4pjJ7RQwPIK\nkXqgPQuvyvCJgJZlddHQCs/sTWhFz14bOmDXpCrSmsqmvOC8TBDfF+iDEZ2V\nKXedf8G9gOlvU1zoCuAsq89oCxVACqwGEfGfIBQy3xtMll2uTryWkOjlbB+r\nDmPsJxEiVJPS+6m7TXsbfDt+DqWjTaGIC3/VyQszI4vR7r3FwXjlw7r46EAh\nDIgu\r\n=EUzl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDi/UV6r9OCDQZPKVDGJ0fOkGBmVy02kD938ccses4uAgIgE9re1HbEh3wjeY5GxWcAnr4bnqAbAwW4uANkNRBw/4M="}]},"maintainers":[{"name":"abemsi","email":"amy.bemister@gmail.com"}],"_npmUser":{"name":"abemsi","email":"amy.bemister@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1571710037542_0.895329334945582"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-22T02:07:17.299Z","1.0.0":"2019-10-22T02:07:17.655Z","modified":"2022-04-04T10:58:59.264Z"},"maintainers":[{"name":"abemsi","email":"amy.bemister@gmail.com"}],"description":"A clone of the lodash JavaScript library to practice creating various types of functions using JS.","homepage":"https://github.com/abemsi/lotide#readme","repository":{"type":"git","url":"git+https://github.com/abemsi/lotide.git"},"author":{"name":"Amy Bemister amy.bemister@gmail.com https://github.com/abemsi/lotide"},"bugs":{"url":"https://github.com/abemsi/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 @abemsi/lotide`\n\n**Require it:**\n\n`const _ = require('@abemsi/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 = function(actual, expected)`: Takes in two arrays and console.logs whether those arrays match.\n* `assertEqual = function(actual, expected)`:\nAsserts whether two arrays are equal.\n* `assertObjectsEqual = function(actual, expected`: Takes in two objects and console.logs whether those arrays match.\n* `countLetters = function(string)`:\nCounts letters in a string.\n* `countOnly = function(allItems, itemsToCount)`:\nCounts specific items in an array.\n* `eqArrays = function(array1, array2)`:\nCan compare two arrays for a perfect match.\n* `eqObjects = function(object1, object2)`:\nTakes in two objects and returns true or false, based on a perfect match.\n* `findKey = function(object, callback)`:\nTakes in an object and a callback, returning the first key that the callback returns truthy.\n* `findKeyByValue = function(object, value)`:\nTakes in an object and returns the first key which contains the given value.\n* `flatten = function(array)`:\nTakes in an array of arrays and returns a flattened version.\n* `head = function(array)`:\nReturns the first item in an array.\n* `letterPositions = function(sentence)`:\nReturns all the indices (zero-based positions) in the string where each character is found.\n* `map = function(array, callback)`:\nCreates a new array with the results of calling a provided function on every element in the calling array.\n* `middle = function(array)`:\nReturns the middle element of an array.\n* `tail = function(array)`:\nReturns every element in an array except for the head.\n* `takeUntil = function(array, callback)`:\nReturns a slice of an array until callback returns a truthy value.\n* `without = function(source, itemsToRemove)`:\nReturns a new array with only elements that are not present in the second array when compared to the first.","readmeFilename":"README.md"}