{"_id":"@codemaksym/lotide","name":"@codemaksym/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@codemaksym/lotide","version":"1.0.0","description":"functions","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"author":{"name":"maksym"},"license":"ISC","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"_id":"@codemaksym/lotide@1.0.0","gitHead":"b5068d7d326d7e27eca391bf6a9c233f677dd4ff","_nodeVersion":"21.7.2","_npmVersion":"10.5.0","dist":{"integrity":"sha512-d+V8i+uk06eKyCz8G7KQBQrRj4P+Ipfyjz/KfjHSTH+Z2a1YBO8s9XElyRa3Y25jjEAVkZaC2xaluxcqS9xDbQ==","shasum":"a5e9b8d76a2144aa5add9dec9640349eabdd0f48","tarball":"https://registry.npmjs.org/@codemaksym/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":17747,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDgJgzp2gT/R7w3ZSRkVnbZQZ1KR66sdRftX92MnUvW/QIgB4gZRvPYJfqOvm6lHD2t1S13n6vUG5z48aHzE24mWjw="}]},"_npmUser":{"name":"codemaksym","email":"maksym.polyakov@yahoo.ca"},"maintainers":[{"name":"codemaksym","email":"maksym.polyakov@yahoo.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1712630732500_0.1431200488423583"},"_hasShrinkwrap":false}},"time":{"created":"2024-04-09T02:45:32.429Z","1.0.0":"2024-04-09T02:45:32.639Z","modified":"2024-04-09T02:45:32.892Z"},"maintainers":[{"name":"codemaksym","email":"maksym.polyakov@yahoo.ca"}],"description":"functions","author":{"name":"maksym"},"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 @codemaksym/lotide`\n\n**Require it:**\n\n`const _ = require('@codemaksym/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 an array.\n- tail(array): Returns all elements of an array except the first one.\n- middle(array): Returns the middle element(s) of an array.\n- assertArraysEqual(actual, expected): Compares two arrays and prints a message indicating whether they are equal.\n- assertEqual(actual, expected): Compares two primitive values and prints a message indicating whether they are equal.\n- eqArrays(array1, array2): Checks if two arrays are equal.\n- assertObjectsEqual(actual, expected): Compares two objects and prints a message indicating whether they are equal.\n- countLetters(string): Counts the occurrences of each letter in a string and returns an object with the counts.\n- countOnly(allItems, itemsToCount): Counts the occurrences of specified items in an array based on a provided object with items to count.\n- eqObjects(object1, object2): Checks if two objects are equal.\n- findKey(object, callback): Returns the first key for which a provided function returns a truthy value in an object.\n- findKeyByValue(object, value): Finds a key in an object based on its corresponding value.\n- letterPositions(string): Returns an object with arrays indicating the positions of each letter in a string.\n- takeUntil(array, callback): Returns elements from an array until a provided condition is met.\n- without(source, itemsToRemove): Returns a new array with all occurrences of specified elements removed.","readmeFilename":"README.md"}