{"_id":"@daya_nayak/lotide","_rev":"1-4f5e511e5eaa57d2386f5173a4260885","name":"@daya_nayak/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@daya_nayak/lotide","version":"1.0.0","description":"Lotide: a mini clone of Lodash Library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/DN8630/lotide.git"},"author":{"name":"Daya Nayak"},"license":"ISC","bugs":{"url":"https://github.com/DN8630/lotide/issues"},"homepage":"https://github.com/DN8630/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3"},"gitHead":"ecd42c64dd5743f4d25e856584abec5678403958","_id":"@daya_nayak/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-g7cgLuX0s8snop1ZhF61blsV/mID0fByG2TKH0BFmnHlnazf1Vll/DWiYjtM+msiVEftUuRA1WmXKAPJS6fRpA==","shasum":"902d05e868d05f51691db098ae7a748a8f908e9f","tarball":"https://registry.npmjs.org/@daya_nayak/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":22189,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfZ4GFCRA9TVsSAnZWagAAVhwP/19HAzZN6F5/RSjk8Rgl\nfg/8dtDGvC8AF5wQYpMc4uWXm89bKGk5JqqUsMfgfHM/5poKLZ5dA6br8Nj8\nqqGXfQHOa010oofDWB/ieLAuEaQSWnlkWJ18IJUYnjiLe7MyRq+bl9tX/O+r\nZJXIEZwNfDiYzkSqzp8DZ0fxdXkERdfVJac2qFfsK1HojjGoSFd0VlKnFG0P\nidJqZFWWfta/OSRdy/4jX9QKbug7tyjJjbeWqpDaIxSYy3jlJhBZzrbn3Yxn\nfx6e5x2ZKuI7rjRmgVAWQDnHZVqsXWtsGQ98xXFRlLp5nzW11Qk9L1QaqfKe\nCSk2YQNbILdQpE27PLUJ/qETk5EN1Q9v0H2WjxQLZI8YXTdGzF8iMGS1TBam\nVKSnjBM1QttBaoO/l6cTeYnoJsGDyGIVICF2cFW67Yi33vEMrwBBAYK5CO0w\nOPbSyVTy/SHXhDVxfNQi0SdYqCQ9SlPrHQZ+RiqLX1hQZAGizEC6bKTbJWpu\nMGUA27mZWUU8rGwZfC/SPB6pgu5sKLcn05SIB5OjUOBW8S+tCEgXZ6fxliAD\nlLhTETqf2tGyOadR8+1TMyj/0DO8l99g7H4iCOY41SQ5gMWoSqLtm3wap7lw\nqn9J5X4R57Xy8wHw1NhWLhTYkSN4MEfEaZD/ZZDQycmA5KGCZatTDrYN8mMo\nm8tm\r\n=rsG+\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFDRoJMzSEH64HGuJMGYfAl9NmuPytzK0aadvo5ymkbXAiBi+sDE0xEV7nH3qpEpus4RZCROW7J2QjJaVXe7P+p2jA=="}]},"maintainers":[{"name":"daya_nayak","email":"dayanayak30@gmail.com"}],"_npmUser":{"name":"daya_nayak","email":"dayanayak30@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1600618884543_0.10038386811088351"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-20T16:21:24.498Z","1.0.0":"2020-09-20T16:21:24.705Z","modified":"2022-04-05T03:11:03.844Z"},"maintainers":[{"name":"daya_nayak","email":"dayanayak30@gmail.com"}],"description":"Lotide: a mini clone of Lodash Library","homepage":"https://github.com/DN8630/lotide#readme","repository":{"type":"git","url":"git+https://github.com/DN8630/lotide.git"},"author":{"name":"Daya Nayak"},"bugs":{"url":"https://github.com/DN8630/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 @daya_nayak/lotide`\n\n**Require it:**\n\n`const _ = require('@daya_nayak/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* assertEqual(actual,expected): Compares actual and expected values and returns results as passed or failed.\n* assertArraysEqual(actualArray,expectedArray): Compares actual and expected arrays and returns result as passed or failed.\n* assertObjectsEqual(object,object): Compares actual and expected objects and returns result as passed or failed.\n* countLetters(string): Returns the count of each of the letters in a given string.\n* head(array): Returns the first element of an array.\n* tail(array): Returns every element except the first element of an array.\n* middle(array): Returns the middle value of an array with more than 2 elements. For an odd length array it returns middle value and for even length array it returns both the middle values.\n* countOnly(allItems, itemsToCount): Given a collection of items, it returns the count of specified subset of items. \n* eqArrays(array1, array2): Compares two arrays and returns true or false.\n* eqObjects(object1, object2): Compares two objects and returns true or false.\n* findKey(object, callback): Checks the given object and returns the first key for which the callback returns a truthy value.\n* findKeyByValue(object,value): Checks the given object and returns the first key which contains the given value.\n* letterPositions(string): Returns all the indices (zero-based positions) in the string where each character is found.\n* map(array,callback): Returns a new array based on the results of the callback function.\n* takeUntil(array,callback): Returns a slice of the array with elements taken from the beginning until the callback returns a truthy value.\n* without(source,itemsToRemove): Returns a subset of a given array, removing specified elements.","readmeFilename":"README.md"}