{"_id":"@calvy/lotide","name":"@calvy/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@calvy/lotide","version":"1.0.0","description":"Calvin's lotide directory with tests","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Calvycoco/lotide.git"},"keywords":["lotide","LHL","functions","library"],"author":{"name":"Calvin"},"license":"ISC","bugs":{"url":"https://github.com/Calvycoco/lotide/issues"},"homepage":"https://github.com/Calvycoco/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"9a6804c864b3bec11933b09de3dc4d624fc8a816","_id":"@calvy/lotide@1.0.0","_nodeVersion":"12.22.8","_npmVersion":"6.14.15","dist":{"integrity":"sha512-wjKKHSMOYmEt73uRGYvBRxr3/Kt92e5S9v0RRY6x4udW9xdA4PIomFbG/8DMWQByzqpBoKgErJAer/jNXlVgqA==","shasum":"0c2d41ee38e2436c275a8858ab21dae506af9ee6","tarball":"https://registry.npmjs.org/@calvy/lotide/-/lotide-1.0.0.tgz","fileCount":28,"unpackedSize":22778,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDiSw8FLEZF3QX+LO/h6FsVwRCN9TMAwleKN+Z3s1auAgIgAiYl5hFw8igE7P8I4h70Lu2fd0bdvc4D2d7KD757lP8="}]},"_npmUser":{"name":"calvy","email":"su.calvin@live.com"},"maintainers":[{"name":"calvy","email":"su.calvin@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1690865173981_0.29179757137756557"},"_hasShrinkwrap":false}},"time":{"created":"2023-08-01T04:46:13.925Z","1.0.0":"2023-08-01T04:46:14.133Z","modified":"2023-08-01T04:46:14.285Z"},"maintainers":[{"name":"calvy","email":"su.calvin@live.com"}],"description":"Calvin's lotide directory with tests","homepage":"https://github.com/Calvycoco/lotide#readme","keywords":["lotide","LHL","functions","library"],"repository":{"type":"git","url":"git+https://github.com/Calvycoco/lotide.git"},"author":{"name":"Calvin"},"bugs":{"url":"https://github.com/Calvycoco/lotide/issues"},"license":"ISC","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 @calvycoco/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@calvycoco/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   * `head`: function that takes in an array and returns the first element in the array.\r\n  * `middle`: function that takes in an array and returns middle most element of the array.\r\n  * `tail`: function that takes in an array and returns everything except the first element of the array.\r\n  * `assertArraysEqual`: function that takes in 2 arrays and returns true if they are equal and false otherwise.\r\n  * `assertEqual`: function that takes in 2 values and returns true if they are equal and false otherwise.\r\n  * `countLetters`: function that takes in a sentence and returns a count of each of the letters in the sentence.\r\n  * `countOnly`:  function that takes in a collection of items and returns a specific subset of those items.\r\n  * `eqArrays`: function that takes in 2 arrays and returns true if the arrays are equal and false otherwise.\r\n  * `eqObjects`: function that takes in 2 objects and return true if they are equal and false otherwise.\r\n  * `findKey`: function that takes in an object and callback and returns the first key that meets the criteria specified in callback.\r\n  * `findKeyByValue`:  function that takes in an object and a value and returns the first key that corresponds to that value.\r\n  * `flatten`: function that takes in an array that contains elements including nested array of elements and returns a flattened version of the array.\r\n  * `letterPositions`: function that takes in a string and returns all indices of letter positions in the string.\r\n  * `map`: function that takes in an array and a callback and returns a new array based on the results of the callback on each item in the array.\r\n  * `takeUntil`: function that takes in an array and callback and returns a slice of the array based on the criteria specified in the callback.\r\n  * `without`: function that takes in a source array and an itemsToRemove arrays and returns only the items from the source array that are not in the itemsToRemove array.\r\n  * `assertObjectsEqual`: function that takes in 2 objects and returns true if they are equal and false otherwise.","readmeFilename":"README.md"}