{"_id":"@bdewitt-cohen/lotide","_rev":"1-9a6af726d4a39edbca0aa24acb579430","name":"@bdewitt-cohen/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bdewitt-cohen/lotide","version":"1.0.0","description":"Trevor's lotide project","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/BDeWitt-Cohen/lotide.git"},"keywords":["TT"],"author":{"name":"Trevor Thomas"},"license":"ISC","bugs":{"url":"https://github.com/BDeWitt-Cohen/lotide/issues"},"homepage":"https://github.com/BDeWitt-Cohen/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^7.2.0"},"gitHead":"e84e9ced36313516e2ce73dcb99c314e18e008aa","_id":"@bdewitt-cohen/lotide@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"bdewitt-cohen","email":"thomastrevor1@gmail.com"},"dist":{"integrity":"sha512-C8DWFAjYkxAwWrqUP5rkDvGQn3v7XD41++XhCcSO74TTxf4LMnq4XWgF8REA7Mb/I+ckz+JyygDOozfzGI6p+A==","shasum":"8aaf1512f129dae2d4075b9b922bd0d06fc0e1cd","tarball":"https://registry.npmjs.org/@bdewitt-cohen/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":21481,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1YdYCRA9TVsSAnZWagAAjlkQAIzm+16WClngHV/V6kWb\nPnHqQ61UBUJkWVoadxVxl52B5y79wr60HyWgP7W2dCDgJc2hTAID+CUKqlDo\nnvg85tX/uXykYrN0RgPE45x7jhA9PlARq4PKz8LQgoILuiFzhuxj535z2r7v\nDaDgoudJ+dbZwnGQ0mvc488+nAAjoN2kiqN5XUHzAwG6lsq4fRo4RMMhlAgt\nhZCcjrfAQP2RtCq646WNEkReWb9WIdgYN3u4nGCjL4UDgbYoKtEURk0BtrH/\nHiL8CwBCzMsABq926w9+n+IP5CV+OwuXKBIfNHQcSwZbb21Bz8YHhl5aRqs+\nireJIpxurr2jFO0HnTb5xpWRZktvTJAZ2oSgPW0LamMQpL6ijD6JLXPpdlCK\n5GcdGQBTlyalLj8JWxwLZe8l6MegZQ83+mHYMPwyzfsSvD3bTPrh5kxZFtHb\nyTSiDDmvxG32Xk3juCGcAOsFKw4OABPHs1PJEYPOhtBBKkiFRhoKPFFiyufl\nwU9hYtI2p2iubZeg7l/EiSagdqQ9DY8e0ASSeVZ1TUWYc5WZkdBANzb6ky9D\ngqtr6rtC7u+it7i6H7NoS/7pRAvwNNjGURGDSjSlA/Ln/E6R86ddQ9oSDhrj\nOftZtzvVN4mIRsrXdqSul0DWBx6xRt90rGEZaMz/1gTPFWeP4Eka7Z+fLq81\nnf4Y\r\n=dK26\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCz4coJrGRYMIGYiAGIwYUjoJMXB6P3B6lwZFQ+qf4tewIhAKGnGIZOGiRrCua3q1YkmGURW7180qenVBcQLZhOPRTa"}]},"maintainers":[{"name":"bdewitt-cohen","email":"thomastrevor1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1591052120160_0.6854485043523166"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-01T22:55:20.114Z","1.0.0":"2020-06-01T22:55:20.295Z","modified":"2022-04-04T18:03:08.467Z"},"maintainers":[{"name":"bdewitt-cohen","email":"thomastrevor1@gmail.com"}],"description":"Trevor's lotide project","homepage":"https://github.com/BDeWitt-Cohen/lotide#readme","keywords":["TT"],"repository":{"type":"git","url":"git+https://github.com/BDeWitt-Cohen/lotide.git"},"author":{"name":"Trevor Thomas"},"bugs":{"url":"https://github.com/BDeWitt-Cohen/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 @BDeWitt-Cohen/lotide`\n\n**Require it:**\n\n`const _ = require('@BDeWitt-Cohen/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* `head(...)`: takes single array as argument and returns index[0]\n* `tail(...)`: takes single array as argument and returns everything after index[0] as a new array\n* `middle(...)`: takes single array as argument and returns middle index for odd length array, and middle two indexes for even length array\n* `assertArraysEqual(arr1, arr2)`: takes two arguments of arrays and then says whether or not they are equal\n* `assertEqual(...)`: takes two primitive data type arguments and then says whether or not they are equal\n* `assertObjectsEqual(...)`: takes two arguments of objects and then says whether or not they are equal\n* `countLetters(...)`: takes a string argument, counts the instances of each letter and returns an object with the count\n* `countOnly(...)`: takes an argument of an array and counts the number of returns the count of items\n* `eqArrays,(...)`: takes two arguments of arrays and then says whether or not they are equal\n* `eqObjects(...)`: takes two arguments of objects and then says whether or not they are equal\n* `findKey(...)`: takes two arguments, an object and a helper function and returns a key from the object based on the value input into the helper function\n* `findKeyByValue(...)`: takes two arguments, an object and a value and returns the key with that value\n* `flatten(...)`: takes an array as an argument, if there's a nested array it will return as a single level array\n* `letterPosition(...)`: takes a string as an argument and returns an object with each letter from the string as keys and their index position (as an array) as the values\n* `map(...)`: takes two arguments, as array and a callback function, the callback returns index[0] of the words\n* `takeUntil(...)`: takes two arguments, an array and callback function, callback is designed to stop at odd number, returns array until the odd number\n* `without(...)`: takes two array arguments and return the first array with any matches from the second array removed\n","readmeFilename":"README.me"}