{"_id":"@arielleon24/lotide","_rev":"1-337bc265cbc971994a66214a406c967d","name":"@arielleon24/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arielleon24/lotide","version":"1.0.0","description":"A clone of the lodash JavaScript library to practice creating various types of functions using JS.","main":"index.js","directories":{"test":"test"},"dependencies":{"chai":"^4.2.0"},"devDependencies":{"mocha":"^8.1.3"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/arielleon24/lotide.git"},"author":{"name":"Ariel Leon"},"license":"ISC","bugs":{"url":"https://github.com/arielleon24/lotide/issues"},"homepage":"https://github.com/arielleon24/lotide#readme","gitHead":"c08e669689e28cd79c647c7d0353238f2cdb07e3","_id":"@arielleon24/lotide@1.0.0","_nodeVersion":"12.18.3","_npmVersion":"6.14.6","dist":{"integrity":"sha512-elkLjQgMSl/UT0+rxGxgZciJvaG9HiDmCZmJ1fhg3a7FlwIdDtuJvnYM89cVnGQgbnJVdcROH3HEHnHjSUaSkQ==","shasum":"858bce205a6d0cf0e7a1e0f2a42ccbb6e94267e7","tarball":"https://registry.npmjs.org/@arielleon24/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":19345,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaU6nCRA9TVsSAnZWagAA8zUP/igZHiuQMOF0yTF9gDTx\nRLj9fxnvv51yxR73j0uiBVsTo5IbPz62+J8hLBt5sYxNHUPi7TAEKAYesduu\nRDCFPUZrhHCXaZkOBPkvUK25yKevldVqaT1pwGjEc9eKx2tjMF1e022Gm2IX\nWp34bEe+K3KejNcQ0uXcAQ8ty2Peq43PfzIdqS81t/OOlQnK95mzRE/jWF6N\n+2IhvVKVPWgaxVqfnCcViQ4GoYa8iPyji4+7xqSFz1WqNfHR/EbfPFVrC1TD\nQzS8a0yxFEcWon6n4PjrQXDNczf4RrRuLsxNGTjn6uUO11Eg4pv7aZqBlfVA\nsxk5aFjNmHqz7em3OfC3QOg7Q9OaxcaPGwqt70INJ3vxz5Sdi8/sqlXmz9rZ\n7Bp7HMfZxPgT8lihfn7X9sIvH0s/T011opVe7VouKXzGxjW4/j9puRHKSI+P\nzzCWFFMa7UrrL8XJ5lfGovU0DljrV/gCTrfo5abiXPv9MgshAD6RnsPyy3qR\nF/wk+E5s/L3YqSljbSHu4D0QNrekuvLO6g/A/hJYqne1Kv1ZuT0OL4cj/JN8\nPuGQ5IpoqM6+tkJmkqJiqVMutk6M9AEA1YzSXm+nJ90HxZGYcUG9HSrj/rLG\nrd9ALZtrY+UuRkPD7hYslFIhuhWwrWnleL/YLyqPCfg2NzWrYI2uoWDCcrVm\n7D1k\r\n=FdJr\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDlREYIUlxURy2nXr2s121cH5aG+GuziuwRo9nHnAOYrgIhAPPPnxZ0KDUzZysu4/Ozw6Jnc3k2qjJs8cn/edUuJ5cx"}]},"maintainers":[{"name":"arielleon24","email":"arielleon24@gmail.com"}],"_npmUser":{"name":"arielleon24","email":"arielleon24@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1600736935366_0.04824564747486826"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-22T01:08:55.334Z","1.0.0":"2020-09-22T01:08:55.568Z","modified":"2022-04-04T15:25:24.173Z"},"maintainers":[{"name":"arielleon24","email":"arielleon24@gmail.com"}],"description":"A clone of the lodash JavaScript library to practice creating various types of functions using JS.","homepage":"https://github.com/arielleon24/lotide#readme","repository":{"type":"git","url":"git+https://github.com/arielleon24/lotide.git"},"author":{"name":"Ariel Leon"},"bugs":{"url":"https://github.com/arielleon24/lotide/issues"},"license":"ISC","readme":"# Lotide\nA mini clone of the [Lodash](https://lodash.com) library.\n## Purpose\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\nThis project was created and published by me as part of my learnings at Lighthouse Labs. \n## Usage\n**Install it:**\n`npm install @arielleon24/lotide`\n**Require it:**\n`const _ = require('@arielleon24/lotide');`\n**Call it:**\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\n## Documentation\nThe following functions are currently implemented:\n* `eqArrays(arr1, arr2)`: returns true for 2 arrays that are equal, and false for 2 arrays that are not equal.\n* `assertArraysEqual(arr1, arr2)`: determines if two arrays are equal. \n* `assertEqual(val1, val2)`: assess whether two arrays are equal, and returns true or false. \n* `assertObjectsEqual(obj1, obj2`: assess whether two objects are equal, and returns true or false. \n* `countLetters(str)`: returns an object with the count of letters in argument string.\n* `countOnly(arrSource, objToCount)`: determines number of times a value occurs in an array, and returns an object.\n* `eqObjects(obj1, obj2)`: returns true for 2 equal objects, and false for 2 non equal\n* `findKey(obj, cb)`: returns first key in obj which valuates true in cb\n* `findKeyByValue(obj, val)`: returns first property in obj with value(val)\n* `letterPositions(str)`:takes in a sentence, and returns an object with the indexes of every letter in the sentece.\n* `head(arr)`: returns the first element of an array.\n* `tail(arr)`: returns an array without first element.\n* `map(arr, cb)`: returns array of elements from src array with true on cb\n* `middle(arr)`: returns the middle element(s) of an array.\n* `takeUntil(arr, cb)`: returns array elements from index 0 until value where cb evaluates true.\n* `without(arr1, arr2)`: returns array of elements from arr1 with arr2 elements removed.","readmeFilename":"README.md"}