{"_id":"@abbasbukhari/lotide","name":"@abbasbukhari/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abbasbukhari/lotide","version":"1.0.0","description":"A mini clone of the Lodash library","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/abbasbukhari/lotide.git"},"keywords":[],"author":{"name":"AbbasBukhari"},"license":"ISC","bugs":{"url":"https://github.com/abbasbukhari/lotide/issues"},"homepage":"https://github.com/abbasbukhari/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"7794eb26994b536b27a5d0430b3c00fc12a5e96c","_id":"@abbasbukhari/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-qFSTv8QS0T04asRxQp29vdcnhoE3A9GDKBSRjXVU63fP8D015ke0b5a+HeSfqquNyv2JvguVVL9dbCif5BhNuw==","shasum":"569017265cc175af2fa78c0a4ff0205d62f094f7","tarball":"https://registry.npmjs.org/@abbasbukhari/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":20067,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCAqHvBTxDcGrs9KWiiA2M22g7fpKIYAhOSzaZurF19YQIhAPocFK0xF3EZMTsxsJNylef4iudK0hUBIdw4PgS0QIkl"}]},"_npmUser":{"name":"abbasbukhari","email":"abbasbukhari2015@gmail.com"},"maintainers":[{"name":"abbasbukhari","email":"abbasbukhari2015@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1729395254333_0.864674385899864"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-20T03:34:14.205Z","1.0.0":"2024-10-20T03:34:14.507Z","modified":"2024-10-20T03:34:14.809Z"},"maintainers":[{"name":"abbasbukhari","email":"abbasbukhari2015@gmail.com"}],"description":"A mini clone of the Lodash library","homepage":"https://github.com/abbasbukhari/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/abbasbukhari/lotide.git"},"author":{"name":"AbbasBukhari"},"bugs":{"url":"https://github.com/abbasbukhari/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 @abbasbukhari/lotide`\n\n**Require it:**\n\n`const _ = require('@abbasbukhari/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 element of the array.\n- `tail(array)`: Returns a new array without the first element.\n- `middle(array)`: Returns the middle element(s) of the array.\n- `assertArraysEqual(array1, array2)`: Logs whether two arrays are equal.\n- `eqArrays(array1, array2)`: Compares two arrays for equality.\n- `assertEqual(actual, expected)`: Logs whether actual and expected values are equal.\n- `countLetters(string)`: Counts the occurrences of each letter in a string.\n- `countOnly(allItems, itemsToCount)`: Counts occurrences of specified items in an array.\n- `flatten(array)`: Flattens a nested array into a single array.\n- `letterPositions(sentence)`: Returns the positions of each letter in a string.\n- `map(array, callback)`: Creates a new array with the results of calling a provided function on every element in the calling array.\n- `takeUntil(array, callback)`: Creates a slice of an array until the callback returns a truthy value.\n- `without(source, itemsToRemove)`: Returns a new array without the specified items.\n","readmeFilename":"README.md"}