{"_id":"@cameronshephard/lotide","_rev":"2-42ef346103333f66a88b86879f1d65c1","name":"@cameronshephard/lotide","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@cameronshephard/lotide","version":"1.0.0","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/OneJuicyDoor/lotide.git"},"author":{"name":"Cameron Shephard"},"license":"ISC","bugs":{"url":"https://github.com/OneJuicyDoor/lotide/issues"},"homepage":"https://github.com/OneJuicyDoor/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"dependencies":{},"description":"lotide project for LHL","gitHead":"3ebd3702dd6c76c4f3fbbbb249b22e0ff172ef80","_id":"@cameronshephard/lotide@1.0.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-421RJwVGOzHbmfWXee+NBAeTWJBhsUF326BTyp68Zz4QKjQUVu2aHORgeyz50BbcnqJfKnF7MJJUJPpJtpX4Aw==","shasum":"047e91c5838a61b827cdf66234043ef33b016487","tarball":"https://registry.npmjs.org/@cameronshephard/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":14373,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCITLXb2HvlQ5y+FjuExRfnm1A1nLJOjXdgjCt5qt/6qgIgfywfa17sczMc6VYZkmKW4bXXT7sJYVPRiCZA9UKxqEM="}]},"_npmUser":{"name":"cameronshephard","email":"shephardcam@gmail.com"},"maintainers":[{"name":"cameronshephard","email":"shephardcam@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1686339710789_0.10641997794674118"},"_hasShrinkwrap":false},"1.1.0":{"name":"@cameronshephard/lotide","version":"1.1.0","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/OneJuicyDoor/lotide.git"},"author":{"name":"Cameron Shephard"},"license":"ISC","bugs":{"url":"https://github.com/OneJuicyDoor/lotide/issues"},"homepage":"https://github.com/OneJuicyDoor/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"dependencies":{"@cameronshephard/lotide":"^1.0.0"},"description":"lotide project for LHL","gitHead":"f3b3dec9af5a2c47f5fc5632409f9ad00ba566bc","_id":"@cameronshephard/lotide@1.1.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-ImyeALSVtzuKmHWrUt2ruCobrW4sltdHS5uD+emASC11HsN+NlmFqKY6Cy6oiX4ABg/mIp+fvoLP5fPHcn5NzA==","shasum":"e1aa63f8ca61e3f981366d67e0ec15cba47e6e4a","tarball":"https://registry.npmjs.org/@cameronshephard/lotide/-/lotide-1.1.0.tgz","fileCount":26,"unpackedSize":13442,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDubyDZOX1YMRf8fTc+iVyZYFH2FU34Qf2iy7eRjyN3sgIgFpeGVg4rR/klfz4EsKZEarI0XbxJtB4tOBRbqe+cGLE="}]},"_npmUser":{"name":"cameronshephard","email":"shephardcam@gmail.com"},"maintainers":[{"name":"cameronshephard","email":"shephardcam@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.1.0_1686874598626_0.9594850216471926"},"_hasShrinkwrap":false},"1.1.1":{"name":"@cameronshephard/lotide","version":"1.1.1","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/OneJuicyDoor/lotide.git"},"author":{"name":"Cameron Shephard"},"license":"ISC","bugs":{"url":"https://github.com/OneJuicyDoor/lotide/issues"},"homepage":"https://github.com/OneJuicyDoor/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"dependencies":{"@cameronshephard/lotide":"^1.0.0"},"description":"lotide project for LHL","gitHead":"f3b3dec9af5a2c47f5fc5632409f9ad00ba566bc","_id":"@cameronshephard/lotide@1.1.1","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-2izxG9ZHAJuxYaozcYMMRkllDtAzq9v3UsXpBAWHQbV4QMF6l0+2otJeYmMhGoWCOD45R20NrEaE3gXddmh6cg==","shasum":"80dcb1e6231f4188ee2420c341ed67dee4464f48","tarball":"https://registry.npmjs.org/@cameronshephard/lotide/-/lotide-1.1.1.tgz","fileCount":26,"unpackedSize":13525,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIBzohBQNEsUywIbmI4qKqQXRSD9t32TqHCAQz+JUWfguAiEA6Zhw2m60N0aBFIqSpV9+Z4Kb52iM+s7LbObYJtMlfBY="}]},"_npmUser":{"name":"cameronshephard","email":"shephardcam@gmail.com"},"maintainers":[{"name":"cameronshephard","email":"shephardcam@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.1.1_1686884156141_0.9649151183342783"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-09T19:41:50.742Z","1.0.0":"2023-06-09T19:41:50.952Z","modified":"2023-06-16T02:55:56.421Z","1.1.0":"2023-06-16T00:16:38.798Z","1.1.1":"2023-06-16T02:55:56.312Z"},"maintainers":[{"name":"cameronshephard","email":"shephardcam@gmail.com"}],"description":"lotide project for LHL","homepage":"https://github.com/OneJuicyDoor/lotide#readme","repository":{"type":"git","url":"git+https://github.com/OneJuicyDoor/lotide.git"},"author":{"name":"Cameron Shephard"},"bugs":{"url":"https://github.com/OneJuicyDoor/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 @cameronshephard/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@cameronshephard/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(...)`: returns the first item of an array\r\n* `tail(...)`: returns an array without the first item\r\n* `middle(...)`: returns the middle or middle two numbers in an array \r\n* `flattenArray(...)`: takes an array of arrays and returns it as one ([1,[2,3],4] => [1,2,3,4]) \r\n* `countLetters(...)`: returns an array with the count of each letter in the given string\r\n* `eqObjects(...)`: returns a true or false for if the given objects are the same or not\r\n* `countOnly(...)`: returns the amound each item appears in the first array, as long as it is also in the second array\r\n* `eqArrays(...)`: returns a true if the given arrays are the same\r\n* `findKey(...)`: returns the key in an object when the callback is fufilled \r\n* `findKeyByValue(...)`: returns the key in an object to a given value\r\n* `letterPositions(...)`: returns the psition of each letter in a string\r\n* `map(...)`: returns a new array after using the callback function on each item of the given array and pushing the result\r\n* `takeUntil(...)`: returns the array untill one of the indexes returns true for the callback\r\n* `without(...)` : returns the first array without the things in the second array\r\n#### `countOnly(allItems, itemsToCount)`\r\n\r\n- Description: Counts the occurrences of specific items in an array based on a provided criteria.\r\n\r\n- Parameters:\r\n\r\n  - `allItems` (Array): The array of items to be counted.\r\n\r\n  - `itemsToCount` (Object): The object specifying the items to count and their criteria.\r\n\r\n- Returns: An object containing the counts of the specified items.","readmeFilename":"README.md"}