{"_id":"@billle0112/lotide","name":"@billle0112/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@billle0112/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Hungle2911/lotide.git"},"keywords":[],"author":{"name":"Hung Le"},"license":"ISC","bugs":{"url":"https://github.com/Hungle2911/lotide/issues"},"homepage":"https://github.com/Hungle2911/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"74feb26c393d15f80043828e3f516260cddc3506","_id":"@billle0112/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-S0pgHvHj5HLqSvjyen3ffCtRZF89sq2CGeG7SjpfC1my+2ye8UIJ4/X/Y/pNc6Qvbgr4/9K4c34ra/zmFNgGng==","shasum":"51b7337321a72351ad00f8043e1ae71b8b7c1476","tarball":"https://registry.npmjs.org/@billle0112/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":19352,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIDUkZa2+iazDc7Z79ApH0mUS5SG5vJvIt92zVXfDGESkAiB3YQJFdGluBpTeaaIGL73o8tvR5LIyu6UZk5XQomD6Mg=="}]},"_npmUser":{"name":"billle0112","email":"leehuanygo@gmail.com"},"maintainers":[{"name":"billle0112","email":"leehuanygo@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1708216808836_0.10429128035376922"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-18T00:40:08.768Z","1.0.0":"2024-02-18T00:40:09.041Z","modified":"2024-02-18T00:40:09.599Z"},"maintainers":[{"name":"billle0112","email":"leehuanygo@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/Hungle2911/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/Hungle2911/lotide.git"},"author":{"name":"Hung Le"},"bugs":{"url":"https://github.com/Hungle2911/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 @billle0112/lotide`\n\n**Require it:**\n\n`const _ = require('@billle0112/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 the first element of the array. \n  `tail(arr)`: Returns a new array with all elements except the first one\n  `middle(arr)`: Returns an array containing the middle elements of the input array.\n  `assertArraysEqual(a, b)`: Take in two arrays and console.log an appropriate message to the console.\n  `assertEqual(actual, expected)`: Takes in two arrays and returns true or false, based on a perfect match.\n  `assertObjectsEqual(actual, expected)`: Compares two objects for equality and logs the result.\n  `eqObjects(object1, object2)`: Takes in two objects and returns true or false, based on a perfect match.\n  `countLetters(sentence)`:  Returns an object containing the count of each letter in the input sentence.\n  `countOnly(allItems, itemsToCount)`: Returns an object with the counts of specified items in the input array.\n  `findKey(object, callback)`: Returns the first key in the object that satisfies the given callback.\n  `findKeyByValue(object, value)`: Returns the key in the object with the specified value.\n  `flatten(arr)`: Returns a new array with all nested arrays flattened.\n  `letterPositions(sentence)`: Returns an object containing arrays of indices for each letter in the input sentence.\n  `map(array, callback)`: Returns a new array with the results of applying the callback function to each element.\n  `takeUntil(array, callback)`:  Returns a new array containing elements from the input array until the callback returns a truthy value.\n  `without(source, itemsToRemove)`: Returns a subset of a given array, removing unwanted elements.\n  `eqArrays`: Takes in two arrays and returns true or false, based on a perfect match.\n\n","readmeFilename":"README.md"}