{"_id":"@amzia99/lotide","_rev":"1-ce28596766e3cbda1565c57d9a44bdb8","name":"@amzia99/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@amzia99/lotide","version":"1.0.0","keywords":[],"author":{"name":"Abdullah Zia"},"license":"ISC","_id":"@amzia99/lotide@1.0.0","maintainers":[{"name":"amzia99","email":"amz1cflp99@gmail.com"}],"homepage":"https://github.com/amzia99/lotide#readme","bugs":{"url":"https://github.com/amzia99/lotide/issues"},"dist":{"shasum":"2c131fb741a753290d101d2cbf9bb4a7b9ff4d69","tarball":"https://registry.npmjs.org/@amzia99/lotide/-/lotide-1.0.0.tgz","fileCount":162,"integrity":"sha512-DU0lCk2qQ9SkMvKyDh7saD0Mf0Hj7sP9jC4ypbLSFF0RKBaO+XndLsRzU4v2il/LgPY+FNDbSFbSTxdzicXTbg==","signatures":[{"sig":"MEYCIQCqLzVi2BP91fleFDErwW3dF7mxGh8c3/QbBRYlba09GwIhANEiXdzrPOwnIOVO/HcnjleQU0txiQtD96rSh+1Wb7f0","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":659604},"main":"index.js","type":"commonjs","gitHead":"f9be396c9af28f654e617a9cf4dd7da2567b3b8d","scripts":{"test":"mocha"},"_npmUser":{"name":"amzia99","email":"amz1cflp99@gmail.com"},"repository":{"url":"git+https://github.com/amzia99/lotide.git","type":"git"},"_npmVersion":"6.14.6","description":"A mini clone of the Lodash Library.","directories":{"test":"test"},"_nodeVersion":"12.18.4","dependencies":{},"_hasShrinkwrap":false,"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_npmOperationalInternal":{"tmp":"tmp/lotide_1.0.0_1729476246420_0.83102106506307","host":"s3://npm-registry-packages"}},"1.0.1":{"type":"commonjs","name":"@amzia99/lotide","version":"1.0.1","description":"A mini clone of the Lodash Library.","main":"index.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amzia99/lotide.git"},"keywords":[],"author":{"name":"Abdullah Zia"},"license":"ISC","bugs":{"url":"https://github.com/amzia99/lotide/issues"},"homepage":"https://github.com/amzia99/lotide#readme","gitHead":"f9be396c9af28f654e617a9cf4dd7da2567b3b8d","_id":"@amzia99/lotide@1.0.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-ZKkBWoNltb7eedZD9tPccng6yUTQ7zUVVcmcokSuYszHhGydH+qjGMV8JAUuBqdiz2weX2AHRQWmhw8U/yqsJQ==","shasum":"14d3d71f01d792be0c3712d1c9f4114f157e951a","tarball":"https://registry.npmjs.org/@amzia99/lotide/-/lotide-1.0.1.tgz","fileCount":162,"unpackedSize":659604,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICCbGxwc+rDc/4W/FtYJnhXeCpqqVWUvWIkbtcDn+GW9AiBXFkYRJLcvuRiebtQfVxwzUIYX6gVp6KgNW2xrJMNH0A=="}]},"_npmUser":{"name":"amzia99","email":"amz1cflp99@gmail.com"},"maintainers":[{"name":"amzia99","email":"amz1cflp99@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1729476444528_0.9719927732341185"},"_hasShrinkwrap":false}},"time":{"created":"2024-10-21T02:04:06.271Z","modified":"2024-10-21T02:07:25.087Z","1.0.0":"2024-10-21T02:04:06.704Z","1.0.1":"2024-10-21T02:07:24.908Z"},"bugs":{"url":"https://github.com/amzia99/lotide/issues"},"author":{"name":"Abdullah Zia"},"license":"ISC","homepage":"https://github.com/amzia99/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/amzia99/lotide.git"},"description":"A mini clone of the Lodash Library.","maintainers":[{"name":"amzia99","email":"amz1cflp99@gmail.com"}],"readme":"# Lotide\r\n\r\nA mini clone of the [Lodash](https://lodash.com) library.\r\n\r\n## Purpose\r\n\r\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\r\n\r\nThis project was created and published by me as part of my learnings at Lighthouse Labs.\r\n\r\n## Usage\r\n\r\n**Install it:**\r\n\r\n`npm install @amzia99/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@amzia99/lotide');`\r\n\r\n**Call it:**\r\n\r\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\r\n\r\n## Documentation\r\n\r\nThe following functions are currently implemented:\r\n\r\n- `assertArraysEqual(arr1, arr2)`: if two arrays are equal.\r\n- `assertEqual(actual, expected)`: if two values are equal.\r\n- `assertObjectsEqual(obj1, obj2)`: if two objects are equal.\r\n- `countLetters(string)`: count occurence of each letter in a string.\r\n- `countOnly(array, itemsToCount)`: count specific element in an array.\r\n- `eqArrays(arr1, arr2)`: compare two arrays for quality.\r\n- `eqObjects(obj1, obj2)`: compare two objects for equality.\r\n- `findKey(object, callback)`: return first key for callback to return truthy value.\r\n- `findKeyByValue(object, value)`: find first key in the object for a specific function.\r\n- `flatten(array)`: flatten nested arrray into single level array\r\n- `head(array)`: returns first element of an array.\r\n- `letterPositions(string)`: returns the indices of each letter in the string. return indices of each letter in the string.\r\n- `map(array, callback)`: create new array with results calling function on every element in the original array.\r\n- `middle(array)`: return middle element of an array. Returns the middle element(s) of an array.\r\n- `recursiveEqArrays(arr1, arr2)`: recursive comparing two arrays for equality.\r\n- `recursiveEqObjects(obj1, obj2)`: recursive comparing two objects for equality.\r\n- `tail(array)`: return all array elements except the first one. \r\n- `takeUntil(array, callback)`: collect items from an array until the truthy value returns from the callback. \r\n- `without(source, itemsToRemove)`: return new array with specific elements removed from original array.\r\n","readmeFilename":"readme.md"}