{"_id":"@amnah/lotide","_rev":"2-85016689679311c9ee829507ec1feff0","name":"@amnah/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amnah/lotide","version":"1.0.0","description":"A mini clone of the Lodash library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amnahasad/lotide.git"},"author":{"name":"Amnah Asad"},"license":"ISC","bugs":{"url":"https://github.com/amnahasad/lotide/issues"},"homepage":"https://github.com/amnahasad/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"dependencies":{"lotide":"^1.0.1"},"gitHead":"c15d3dc71299830c62de95526e9d1332d89aed20","_id":"@amnah/lotide@1.0.0","_nodeVersion":"15.13.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-1XIdFISuFRwt9cTmGPeqeRvb4gnXCZVGnZlEH6g3sBecKmHLYC1IJGyVj6GvNoLwwNj4ULdrniywX5ilGaxXmA==","shasum":"03ee45c729d17ab17617ebcc94770b70af4fc7d4","tarball":"https://registry.npmjs.org/@amnah/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":18610,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFQBCRA9TVsSAnZWagAAlKIQAKK8luAR/sJzjtqYxlOv\nWUqiWmub0Wv8KXRsHoXR6SD1MTrkEoYthpjlGyJ1boXDg/HCKRLIKIdk0mDo\nxbvzKIOt20V4P693tVOmb10ER4IagoO5QiI1bDJGKPK5ZBbAqbiJidI0pL49\nPf0D8IS3BAWOi/wXBNAm1lM9D13ejwj+r7ZC5P2+WNfEmkb0l4R+pjDB0PCK\nAFwEAcYnuzAbke10OgezlI9yA64Okovae0v7CfPpyVVICZmSr33yOZYl2fv8\nOqA+F5/ezdiMSJeSZbVVIOl4r+536IPivw/q98lz3dIHkAXuh2YTYh8RfyS3\n/DbDzBz1uBK6gaxbA0+JM0/SK/s0fn9Dx8TvgmIxRKkpr4Vy5LTJjs0Z6ga5\n/Y07/It0LIsu5wTTBIrjdT7w/SVqX/oiaGD5si3JfSPZZ8NDEjhDroY2nu/1\nR8qcs8VLx73Q1bNsr12A/FppAozHBxKFP9tjEJHR9rxi7rA9gtbI3Ea7qAAr\nS1b2Y9gCM1H40GGGUxNfdE/aZPuFpYOmCd4Y59mlBAvcCOt5VdwgIs36rNTW\nWLv/GxO/1wTTVTp9kCTy8HjVQIPR3ERTg8mwTu7yXYtOkfmDhCya6jF5ynx8\nP9tYLEALXDY98ZX7mUgASCztyBOuVbcP2jELtd+ChZcbk0loXkBZPDTW4CgM\n8gdj\r\n=plMl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC65U6BFNLgSKS35maeCIrWd2mIkRkUAcKS4hHRc9iivgIhAPC8t4FGhOiV6KimZE92O2BjfNzWFo0OP02s24CdMwB5"}]},"_npmUser":{"name":"amnah","email":"amnah_asad@hotmail.com"},"maintainers":[{"name":"amnah","email":"amnah_asad@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1635824985377_0.24084383970648005"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-02T03:49:45.331Z","1.0.0":"2021-11-02T03:49:45.501Z","modified":"2022-04-04T13:50:17.410Z"},"maintainers":[{"name":"amnah","email":"amnah_asad@hotmail.com"}],"description":"A mini clone of the Lodash library","homepage":"https://github.com/amnahasad/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amnahasad/lotide.git"},"author":{"name":"Amnah Asad"},"bugs":{"url":"https://github.com/amnahasad/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 @amnah/lotide`\n\n**Require it:**\n\n`const _ = require('@amnah/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(array)`: Returns the first value of an array\n* `tail(array)`: Returns all the values of an array after the first value\n* `middle(array)`: Returns the middle value of an array\n* `without(source, itemsToRemove)`: Returns a subset of an array, removing the unwanted elements\n* `takeUntil(array, callback)`: Will keep collecting items from a provided array until the callback provided returns a truthy value\n* `map(array, callback)`: Returns a new array based on the results of the callback function\n* `letterPositions(sentence)`: Returns all the indices (zero-based positions) in the string where each character is found\n* `findKey(object, callback)`: Takes in an object and a callback. It should scan the object and return the first key for which the callback returns a truthy value. If no key is found, then it should return undefined\n* `findKeyByValue(obj, value)`: Takes an object and a value. It should scan the object and return the first key which contains the given value. If no key with that given value is found, then it should return undefined\n* `eqObjects(object1, object2)`: Takes in two objects and returns true or false, based on a perfect match\n* `eqArrays(array1, array2)`: Takes in two arrays and returns true or false, based on a perfect match\n* `countOnly(allItems, itemsToCount)`: Returns a proper report (an object) on all the strings found in the input array, and their respective counts\n* `countLetters(sentence)`: Takes a sentence (as a string) and then returns a count of each of the letters in that sentence\n* `assertObjectsEqual(actual, expected)`: Takes in two objects and console.logs an appropriate message to the console\n* `assertArraysEqual(array1, array2)`: Takes in two arrays and console.logs an appropriate message to the console\n* `assertEqual(actual, expected)`: Prints to the console, when an expected outcome fails","readmeFilename":"README.md"}