{"_id":"@buyayub/lotide","name":"@buyayub/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@buyayub/lotide","version":"1.0.0","description":"This project was created and published by me as part of my learnings at Lighthouse Labs. BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.","main":"index.js","dependencies":{},"devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/ayub-elwhishi/lotide.git"},"author":{"name":"Ayub Elwhishi"},"license":"ISC","bugs":{"url":"https://github.com/ayub-elwhishi/lotide/issues"},"homepage":"https://github.com/ayub-elwhishi/lotide#readme","gitHead":"4a302408379c85acaf3e42b65c2c5119687b414b","_id":"@buyayub/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-4vohS+h50WPasiJnEB6FiQHWFH5xPjCfD4yb2eSEu1HRovtvBUGSFUOpTDeL8fEONEPkblgBTozTUuJHmHiwzg==","shasum":"a44ac1932d18d51a1328528d3d2ce1388f9f9b1c","tarball":"https://registry.npmjs.org/@buyayub/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":16161,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDkt5B5d1GTmWMSD6Hlu4VVIvK6gS1J+8Y+JcWDU595KQIgT9p1I7ejxk/BOS9flygEyRIa9jgM4A4ThxnBBwDIxHo="}]},"_npmUser":{"name":"buyayub","email":"ayubyubster@gmail.com"},"directories":{},"maintainers":[{"name":"buyayub","email":"ayubyubster@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1689186784078_0.3274959352473015"},"_hasShrinkwrap":false}},"time":{"created":"2023-07-12T18:33:03.967Z","1.0.0":"2023-07-12T18:33:04.324Z","modified":"2023-07-12T18:33:04.567Z"},"maintainers":[{"name":"buyayub","email":"ayubyubster@gmail.com"}],"description":"This project was created and published by me as part of my learnings at Lighthouse Labs. BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.","homepage":"https://github.com/ayub-elwhishi/lotide#readme","repository":{"type":"git","url":"git+https://github.com/ayub-elwhishi/lotide.git"},"author":{"name":"Ayub Elwhishi"},"bugs":{"url":"https://github.com/ayub-elwhishi/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 @buyayub/lotide`\n\n**Require it:**\n\n`const _ = require('@buyayub/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* `assertArraysEqual(arr1, arr2)`: asserts that two arrays are equal to each other\n* `assertEqual(actual, expected)`: performs test to see if two values are equal to each other\n* `assertObjectsEqual(obj1, obj2)`: performs test to see if two objects are equal to each other \n* `countLetters(str)`: counts the letters in a string and returns an object with the letter count\n* `countOnly(allItems, itemsToCount)`: count items in an array, but only those referenced in itemsToCount. returns object with count of certain items\n* `eqArrays(arr1, arr2)`: determines if arrays are shallowly equal.\n* `eqObjects(object1, object2)`: determines if objects are shallowly equal\n* `findKey(obj, callback)`: find key in object according to criteria in callback function for their values\n* `findKeyByValue(obj, val)`: iterate through object snad return a key if the value is the same as `val`\n* `flatten(arr)`: flatten an array\n* `head(arr)`: returns the head of an array\n* `letterPositions(sentence)`: collects the positions of letters in a sentence, and returns an object with the keys for each letter. \n* `map(array, callback)`: apply callback to each value in an array and return the mapped array\n* `middle(arr)`: returns the middle element of an array\n* `tail(arr)`: returns the tail of an array (everything that isn't the head)\n* `takeUntil(array, callback)`: return array with values up until callback criteria is reached for an element\n* `without(arr, exclude)`: filters array of values  that are present inside `exclude` array and returns result\n","readmeFilename":"README.md"}