{"_id":"@absentcodes/lotide","name":"@absentcodes/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@absentcodes/lotide","version":"1.0.0","description":"used for testing","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/absentcodes/lotide.git"},"author":{"name":"Absent Codes"},"license":"ISC","bugs":{"url":"https://github.com/absentcodes/lotide/issues"},"homepage":"https://github.com/absentcodes/lotide#readme","devDependencies":{"chai":"^4.3.10","mocha":"^9.2.2"},"gitHead":"313901b958f3a719c8d136e1bbe8edf75065f33b","_id":"@absentcodes/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-GK2bjnAwOyocCjl+UrshJaPIqf/xT7vvkjO7qHMJMLZAi2T0QCmyg2Ed+ZQFr8Po7zXyVy/+2QSi5/ZuTOCgJg==","shasum":"7ff36c2bcb8eb28742c78e83c6e7d74fc7d8e9eb","tarball":"https://registry.npmjs.org/@absentcodes/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":18631,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBrDyl8zRfsZsBTLqANSlA5HfLl22FXA9IIAnhKlfpe7AiBgvpz2gwePKCcDBLR0ByeuGUggbV+ghtS/QeLc++yMpw=="}]},"_npmUser":{"name":"absentcodes","email":"faisa.fatah@gmail.com"},"maintainers":[{"name":"absentcodes","email":"faisa.fatah@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1702261843415_0.07223294885693998"},"_hasShrinkwrap":false}},"time":{"created":"2023-12-11T02:30:43.303Z","1.0.0":"2023-12-11T02:30:43.573Z","modified":"2023-12-11T02:30:43.799Z"},"maintainers":[{"name":"absentcodes","email":"faisa.fatah@gmail.com"}],"description":"used for testing","homepage":"https://github.com/absentcodes/lotide#readme","repository":{"type":"git","url":"git+https://github.com/absentcodes/lotide.git"},"author":{"name":"Absent Codes"},"bugs":{"url":"https://github.com/absentcodes/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 @absentcodes/lotide`\n\n**Require it:**\n\n`const _ = require('@absentcodes/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()`: Returns the first element of an array.\n* `tail()`: Returns a new array containing all elements except the first one.\n* `middle()`: Retrieves the middle element(s) of an array.\n* `assertArraysEqual()`: Asserts the equality of two arrays.\n* `assertEqual()`: Asserts the equality of two primitive values.\n* `assertObjectsEqual()`: Asserts the equality of two objects.\n* `countLetters()`: Counts occurrences of each letter in a string and returns a count object.\n* `countOnly()`: Counts occurrences of specified elements in an array according to a provided condition.\n* `eqArrays()`: Checks the equality of two arrays.\n* `eqObjects()`: Checks the equality of two objects.\n* `findKey()`: Retrieves the first key in an object that satisfies a provided condition.\n* `findKeyByValue()`: Retrieves a key in an object based on its corresponding value.\n* `flatten()`: Flattens a nested array structure into a single level.\n* `letterPositions()`: Determines the positions of letters in a string and returns an object with the indices.\n* `takeUntil()`: Returns a slice of an array until a specified condition is met.\n* `without()`: Returns a new array with specified elements removed.","readmeFilename":"README.md"}