{"_id":"@aaron.timbol/lotide","_rev":"1-ba0d7dc3c5e24c91d33b0c6f58d229cf","name":"@aaron.timbol/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aaron.timbol/lotide","version":"1.0.0","description":"Copy of lodash, used for learning purposes at Lighthouse Labs","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/timbolaj/lotide.git"},"keywords":[],"author":{"name":"Aaron Timbol","email":"timbolaj@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/timbolaj/lotide/issues"},"homepage":"https://github.com/timbolaj/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^7.1.2"},"gitHead":"9c103ac532f1bfd4df0e15313105b1d065040fc7","_id":"@aaron.timbol/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.13.6","dist":{"integrity":"sha512-8rq1OU5+zUKBTGIfjjNFbjacyfEMGX8abJ83P3Mf0L8sZvmiXHlZaT27a/UeHVKZvW6R5OwU5oQvFnW/el61kQ==","shasum":"ff6a2fbf376e25a5404b1e7c4039441ebf9791ed","tarball":"https://registry.npmjs.org/@aaron.timbol/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":17730,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesHh5CRA9TVsSAnZWagAALyIP/ArExljPiodYYTCIWaDH\n8juk8RJfBOuurtJj+bf2v3Vh54O4u5bZThdeajovYTBDQ462M5SNvqn07xQe\np/UW3ArX2p3c5rk2ewUeX+mQdXQ9s5tHDGnQuM4/IlV0ZznMPGrIQx2VBcid\ny5fWg1zrKIJ0bkp/iXrXOhp59wkndLQJI7fNVjWo7WS/oc9kGy78KsD/kFhm\nkNVO3ayIlCELEV6wK4mvmu1PdIvhiJTQ1otItP572amyWA1CARXPkaHELWta\nZdZGPfFdsvXqeD6+uNV93WS2/iwzv2eDGO3dYaXFFRQAO0tINJGtISlW6M4J\nz2yf2w/jmU2WGBnUXgooRWDrfjk/QefFG+vEvP/YMgQLf4MuA89bcUAXSfja\nSKPcMZaCe1Mhiex2irYDdeaiBioEulF4QNwfg1QPXXE+sHNPbqLSRrTG5RK9\n6GisN0Mr0n6LOEUaeW8lXuX3KBdO0XuwGVCvSk5r8vH5MIqNfPgS/KgERKi2\n1r+VkzCna6j6cxv9T2OlzonRRaSRbyS8SRB9Riqumic09CjzVH7uEkiFLZ05\neLWc1xzO+H8wNm+iaQS/B81oir0sPyorMG7Do6DaYd/POCZFt1KE57DZ/4LS\n44uV6W/RSD0jNfn4Zd26mRkDhBwxGkNcz0Y+3FusHByBOpd45etnIGnyw6gR\nd6pj\r\n=Kus/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDtvULfUhnqglXlComXsl/OQ1/YQmFdNsD+lzciP8wAEAIgZUAL8IWx3qVmEvcocAG3M9OJob75TTZbkV90w9qVW44="}]},"maintainers":[{"name":"aaron.timbol","email":"timbolaj@gmail.com"}],"_npmUser":{"name":"aaron.timbol","email":"timbolaj@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1588623481361_0.5924966668539502"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-04T20:18:01.326Z","1.0.0":"2020-05-04T20:18:01.461Z","modified":"2022-04-04T10:55:32.503Z"},"maintainers":[{"name":"aaron.timbol","email":"timbolaj@gmail.com"}],"description":"Copy of lodash, used for learning purposes at Lighthouse Labs","homepage":"https://github.com/timbolaj/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/timbolaj/lotide.git"},"author":{"name":"Aaron Timbol","email":"timbolaj@gmail.com"},"bugs":{"url":"https://github.com/timbolaj/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 @aaron.timbol/lotide`\n\n**Require it:**\n\n`const _ = require('aaron.timbol/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(arr1, arr2)`: Will log a message indicating if arr1 is equivalent to arr2\n* `assertEqual(actual, expected)`: Will log a message indicating if actual is equivalent to expected - used to test the output of functions and their expected value(s)\n* `assertObjectsEqual(actual, expected)`: Will log a message indicating if the object in actual is equivalent to the object in expected - use to test output of functions and their expected object value(s)\n* `countLetters(str)`: Will return an object with each letter provided in str and the number of times it appears in that string\n* `countOnly(`allitems, itemsToCount`): Will return an object with a count of each name in object itemsToCount and the amount of times it appears in allitems\n* `eqArrays(arr1, arr2)`: Will evaluate if arr1 is equal to arr2 and return a boolean\n* `eqObject(object1, object2)`: Will evaluate if object1 is equal to object2 and return a boolean\n* `findKey(obj, callback)`: Will loop through keys in an object until the condition indicated in callback is satisfied. If no key is found, undefined is returned\n* `findKeyByValue(obj, value)`: Goes through all the keys in an object and returns the first key that contains the value provided\n* `flatten(arr)`: Will evaluate arr, looping through one level of nested array, and will return a new array with no nested arrays\n* `head(arr)`: Will return the first element in an array\n* `letterPositions(str)`: Will return an object with a count of how many times each letter appears in a string\n* `map(arr, callback)`: Imitates the .map() method for arrays in JS\n* `middle(arr)`: Will return the middle-most value(s) in an array whose length is above 2\n* `tail(arr)`: Returns all elements of an array except the first element in cases where arr.length is above 2\n* `takeUntil(arr, func)`: Collects items in an array until the func condition is meant, at which point, it will return all the values preceding that value\n* `without(sourceArr, itemsToRemove)`: Will return the elements in sourceArr, not including those in itemsToRemove","readmeFilename":"README.md"}