{"_id":"@amoazzami/lotide","_rev":"1-66afbc3e7887f380df394e3c46b4b074","name":"@amoazzami/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amoazzami/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library. This library was published for learning purposes. It is _not_ intended for use in production-grade software.This project was created and published by me as part of my learnings at Lighthouse Labs","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amoazzami/lotide.git"},"author":{"name":"Azadeh Moazzami"},"license":"ISC","bugs":{"url":"https://github.com/amoazzami/lotide/issues"},"homepage":"https://github.com/amoazzami/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3"},"dependencies":{"my-package":"0.0.0"},"gitHead":"0cf773586934a7d4849161cc403d4f41dc1a9fa2","_id":"@amoazzami/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-51nANxWTuSyq+az+3JEGfDezu88FgGTlyVV/Nu4CdsgxO5KAZeBklxastvfmKOvX9cre/BHTLALqUsixezmovA==","shasum":"c9e0b513ee47dbfd18043a47633e2bd9a2e817d6","tarball":"https://registry.npmjs.org/@amoazzami/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":19026,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfbmUHCRA9TVsSAnZWagAAftwP/iQ2Ij9H5YtYzcwvROF+\np3un0Yd2Z09NFYvWzwQkGP6Z7YensUY3wiwxxaoNuAKP5ok5tBHZEabghFhK\n3JYzht5z+bSktfYNc6PoY+UAVBtZYmHkf2hnfzDa+Qq0Sod7YlAz2U79DAuP\nUA8kVT7ZOlEkV8sjA8fxZJV5mETaDA4ypQa9MkzqkpNAtRsLBtsdFKBqPY+w\nD8Et5AgtE1KpTxEP9QmD+3/hclTExOoojQgzSiUxIMJG6lQ+gTdwIZtum/dV\nWCCujI2xQxAEsVdH8ek9RAIgjdrAb6s8DaeECayxtaXqo5inkF4GvCnrn4A9\nSrdRyDvYSP/5Y4+eqO2X3F0sBngr9JtuwWngoabs8/C9Hm/junAEnnG0NZYV\nGUKM8Z1ccoOb33VbTGBnZ2UeY/Njbh4gLaRtkFETRo5Q9j9XSVqidA7DnJ8K\nM3JrS6SV2P/7zq1XK6mrYP//MktNjU5ey4EIkAO+PMGClUR/4ybVgfddaTq2\nzYbQ9irTZtQ1BZEmBkK8KqrR2SGKegfXRzSPz1HQa+1qOl1GlQ8D7vWlvj/9\nlbKgau059oCBhlPutQGLwjIUfcPDyEHX2uzKTeBETdUrxBJjr1A547St4Wiw\nVRX3PE5NfHVJpxy4JbHx26tzANo26I08IuRTUPAkaVFlqh6cr2twZPjYQa85\n01n2\r\n=NevK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAQSPfT3xIETNP/MMaTwwMZ64TuhN4Q+7nq/JBRfS3J7AiAFT0i45G43C1ZnbmD+1rUNZE9TyFWYZEjCcRtks+ss1g=="}]},"maintainers":[{"name":"amoazzami","email":"moazzami.azadeh@gmail.com"}],"_npmUser":{"name":"amoazzami","email":"moazzami.azadeh@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1601070342991_0.7028152461017927"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-25T21:45:42.941Z","1.0.0":"2020-09-25T21:45:43.168Z","modified":"2022-04-04T13:50:26.231Z"},"maintainers":[{"name":"amoazzami","email":"moazzami.azadeh@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library. This library was published for learning purposes. It is _not_ intended for use in production-grade software.This project was created and published by me as part of my learnings at Lighthouse Labs","homepage":"https://github.com/amoazzami/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amoazzami/lotide.git"},"author":{"name":"Azadeh Moazzami"},"bugs":{"url":"https://github.com/amoazzami/lotide/issues"},"license":"ISC","readme":"# Lotide\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`npm install @amoazzami/lotide`\n\n**Require it:**\n`const _ = require('@amoazzami/lotide');`\n\n**Call it:**\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\n\n## Documentation\nThe following functions are currently implemented:\n\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.\n\n","readmeFilename":"README.md"}