{"_id":"@ale_molina43/lotide","name":"@ale_molina43/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@ale_molina43/lotide","version":"1.0.0","description":"A collection of JavaScript utility functions for testing, array manipulation, and object operations.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alemolina43/lotide.git"},"author":{"name":"Alejandra Gutierrez"},"license":"ISC","bugs":{"url":"https://github.com/alemolina43/lotide/issues"},"homepage":"https://github.com/alemolina43/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"1af993c57c2a309da83d8f42abc8426f53c82c29","_id":"@ale_molina43/lotide@1.0.0","_nodeVersion":"16.20.2","_npmVersion":"8.19.4","dist":{"integrity":"sha512-9Zio+2OtzXRh4oXluwKFVnJlwtqEC+NhQ5L/X6H2hunHRUAboD8VlfyHQ7lRhECvny2z1kfMTehSY7R9sQerKQ==","shasum":"b213c3505a12785d34815db27055ed3b49b501c2","tarball":"https://registry.npmjs.org/@ale_molina43/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":21123,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEYCIQDRpmUy4fGgRDs7hc5xPj6y9GVMq/X1TeobFfj2QiOOtQIhAPcEDqtIPl5yeoNHT+B4mpCrCdUlBjzrMdQcusUknquQ"}]},"_npmUser":{"name":"ale_molina43","email":"alexmarket43@gmail.com"},"maintainers":[{"name":"ale_molina43","email":"alexmarket43@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/lotide_1.0.0_1740442936658_0.4936738514187262"},"_hasShrinkwrap":false}},"time":{"created":"2025-02-25T00:22:16.580Z","1.0.0":"2025-02-25T00:22:16.841Z","modified":"2025-02-25T00:22:17.108Z"},"maintainers":[{"name":"ale_molina43","email":"alexmarket43@gmail.com"}],"description":"A collection of JavaScript utility functions for testing, array manipulation, and object operations.","homepage":"https://github.com/alemolina43/lotide#readme","repository":{"type":"git","url":"git+https://github.com/alemolina43/lotide.git"},"author":{"name":"Alejandra Gutierrez"},"bugs":{"url":"https://github.com/alemolina43/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 @ale_molina43/lotide`\n\n**Require it:**\n\n`const _ = require('@ale_molina43/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- `assertArraysEqual`: Compares two arrays and logs a success or failure message based on whether they are equal.\n- `assertEqual`: Compares two values using === and logs a success or failure message.\n- `assertObjectsEqual`: Compares two objects using eqObjects and logs a formatted assertion message.\n- `countLetters`: Returns an object with the count of each letter in a given sentence, excluding spaces.\n- `countOnly`: Counts specified items in an array and returns an object with their frequencies.\n- `eqArrays`: Compares two arrays element by element and returns true if they are identical, otherwise false.\n- `eqObjects`: Compares two objects, checking both keys and values (including nested arrays), and returns true if they are equal.\n- `findKey`: Returns the first key in an object for which the callback function returns true.\n- `findKeyByValue`: Returns the first key in an object that matches a given value.\n- `head`: Returns the first element of an array.\n- `letterPositions`: Returns an object mapping each letter in a string (excluding spaces) to an array of its index positions.\n- `map`: Applies a callback function to each element of an array and returns a new array with the new values.\n- `middle`: Returns the middle element(s) of an array—one for odd-length arrays, two for even-length arrays.\n- `tail`: Returns a new array containing all elements except the first from the input array.\n- `takeUntil`: Returns a new array containing elements from the input array until the callback function returns true.\n- `without`: Returns a new array with elements from the source array, excluding those found in the itemsRemoved array.\n","readmeFilename":"README.md"}