{"_rev":"5-5aea00547d7a353de956998d6307e5e5","time":{"created":"2023-06-10T02:32:50.375Z","1.0.0":"2023-06-09T03:35:07.269Z","modified":"2023-06-10T02:32:50.827Z","2.0.0":"2023-06-10T02:32:50.661Z"},"_id":"@boyangyu93/lotide","name":"@boyangyu93/lotide","dist-tags":{"latest":"2.0.0"},"versions":{"2.0.0":{"name":"@boyangyu93/lotide","version":"2.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/BYYu31/lotide.git"},"author":{"name":"Bo Yang Yu"},"license":"ISC","bugs":{"url":"https://github.com/BYYu31/lotide/issues"},"homepage":"https://github.com/BYYu31/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"dependencies":{},"gitHead":"c1c29948b2377bb9d63501248ee3fcdc083a1078","_id":"@boyangyu93/lotide@2.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-hRlSmyaD3aCKkU3BOfmPj2F+qfVG/l9NztKm1knNa9Ja1gVTvaCTUlM7ZSKZ2AGCnNg/xOmEhSB49ZNBLHIY4g==","shasum":"d751779595ba77835fae1aec3d7d9fdebd53e7d5","tarball":"https://registry.npmjs.org/@boyangyu93/lotide/-/lotide-2.0.0.tgz","fileCount":28,"unpackedSize":17469,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDXcJAnbPGRQTt6sUNdINuD1BZH1wJDRUN81JOQa0AZhgIhAPToW7w1eKPASVRWXNmaNGzW1whtPZ3mzrKcOPvX4gXs"}]},"_npmUser":{"name":"boyangyu93","email":"boyangyu93@gmail.com"},"maintainers":[{"name":"boyangyu93","email":"boyangyu93@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_2.0.0_1686364370432_0.19972435978831293"},"_hasShrinkwrap":false}},"maintainers":[{"name":"boyangyu93","email":"boyangyu93@gmail.com"}],"description":"A mini clone of the Lodash library.","homepage":"https://github.com/BYYu31/lotide#readme","repository":{"type":"git","url":"git+https://github.com/BYYu31/lotide.git"},"author":{"name":"Bo Yang Yu"},"bugs":{"url":"https://github.com/BYYu31/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 @boyangyu93/lotide`\n\n**Require it:**\n\n`const _ = require('@boyangyu93/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(arr)`: returns 1 for [1, 2, 3].\n* `tail(arr)`: returns 2, 3 for [1, 2, 3].\n* `middle(arr)`: returns [] for [1] or [1, 2]; [2] for [1, 2, 3]; [2, 3] for \n*                  [1, 2, 3, 4].\n* `assertArraysEqual(actual, expected)`: test function for eqArrays.\n* `assertEqual(actual, expected)`: test function for functions with primitive \n*                                  values as output.\n* `assertObjectsEqual(actual, expected)`: test function for eqObject.\n* `countLetters(str)`: returns the count of each letter in the string.\n* `countOnly(allItems, itemsToCount)`: returns the count of item(s) in allItems,\n*                                      specified in itemsToCount. Returns \n*                                      unidentified if item not specified.\n* `eqArrays(arr1, arr2)`: compares two arrays and return true or false.\n* `eqObject(obj1, obj2)`: compares two objects and return true or false.\n* `findKey(obj, callback)`: returns key based on the condition specified by\n*                           the callback function.\n* `findKeyByValue(obj, value)`: returns key of input value.\n* `letterPositions(str)`: returns the indices of each letter in the string.\n* `map(array, callback)`: returns a new array with results from the callback on \n*                         every element in the calling array.\n* `flatten(nestedArray)`: returns a flattened version of a nested array. \n* `takeUntil(array, callback)`: returns a new array with values taken \n*                               incrementally from the calling array until\n*                               condition specified by the callback is met.\n* `without(source, itemsToRemove)`: returns a new array with all elements from \n*                                   the source input expect element specified by\n*                                   itemsToRemove.","readmeFilename":"README.md"}