{"_id":"@alisonhussey/lotide","_rev":"1-8949b1baeef8c8eb149acd36cdb62e08","name":"@alisonhussey/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alisonhussey/lotide","version":"1.0.0","description":"A clone of lodash","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alisonhussey/lotide.git"},"author":{"name":"Alison Hussey"},"license":"ISC","bugs":{"url":"https://github.com/alisonhussey/lotide/issues"},"homepage":"https://github.com/alisonhussey/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1"},"gitHead":"632a2cf983ae592ae17458568ad7a3471438e3f2","_id":"@alisonhussey/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.9","dist":{"integrity":"sha512-vbRP764eutUfKSa443kaHeIA/pBIDT9r6Ef+DW/4FMd1JnNOkJSFBxza8J0PGgnVtGjX3ABew4sE/YCCo5Z7Pw==","shasum":"85e24b2fd5ccb698e38fed4c1049c584aa2113eb","tarball":"https://registry.npmjs.org/@alisonhussey/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":19821,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfzWOOCRA9TVsSAnZWagAAzA8QAJHvN8UnzKBYNDlutvGM\nDfc8uQ62ZYtWoXEiIs17w7pWnBpa4sud6SGP2I21RmVUx20IN7UedpFKZ2aW\nAepCa8sit9RIzGTvHybKSSj5FCXcj+b3Ov54kpIjWqWSheYDtbNkZO4P9zUe\nCFC9aG0/cIloHpind2R6y+OlpYliG3xSzEZIJtUSE3edOpsAbu0GPWKFhSb8\nNk3DhTrTvjcRwudMqljsPBKJDPJVRcCgmg0D/P53ukUPtEpdkwfANwDpqEHE\nlNIP7EY3OlaMMwPmlQrxdauueRu0RRdmqH2JeCFVKqVTVn3hjDJwdJkd3Ql2\nnIyH93fiGXX2MKFnIGiBenMY6bMnvnVuzWkVSL6F9yjUnESRv5gzd0afC+k0\nOUR05vLINngANAIiXPrmkRCtGYfkRA8IJ2UYWReIjAtEvxA+IQhc7dWkHYjN\nxEwm/eZSYfs7HtzX4wYejuSPEJHah73ts4jmPzFXJ3CdFYsZf5Fp0Uqgskzm\npx38qpS8rHOzNHkoPQEEabdQ4R7aZQ/d0P+gpJyJXjh5k/UDgxSstt6GScsp\n9JSP/FVqjzDlH5xvXw4oV+iXeKFhheBk342pna1kHyS2ucQcRs5S0umO/OJ+\n5uy9N+93qmYaW2r0wH+5eFkJKvbvWSY079nKnfkg4mXeEnRpbG3i/1QtY54B\nA4Ka\r\n=0aKE\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIDm8SymMKMBGCp229gi2maOIp1yS8T66DUBZWi29FdmgAiEA75aku4K1KeC86DWTibmO094eD8JJRrKzRbQ4tVhM8ME="}]},"_npmUser":{"name":"alisonhussey","email":"alisonhussey@gmail.com"},"maintainers":[{"name":"alisonhussey","email":"alisonhussey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1607295885936_0.5278017893666074"},"_hasShrinkwrap":false}},"time":{"created":"2020-12-06T23:04:45.901Z","1.0.0":"2020-12-06T23:04:46.049Z","modified":"2022-04-04T13:27:46.479Z"},"maintainers":[{"name":"alisonhussey","email":"alisonhussey@gmail.com"}],"description":"A clone of lodash","homepage":"https://github.com/alisonhussey/lotide#readme","repository":{"type":"git","url":"git+https://github.com/alisonhussey/lotide.git"},"author":{"name":"Alison Hussey"},"bugs":{"url":"https://github.com/alisonhussey/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 @alisonhussey/lotide`\n\n**Require it:**\n\n`const _ = require('@alisonhussey/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`: function to retrieve the first element from the array\n* `tail`: function to return every element except the head of the array.\n* `middle`: function to return an array with only the middle element(s) of the provided array\n* `assertArraysEqual`: function for asserting that two arrays are equal\n* `assertEqual`: function for asserting that two outputs are equal\n* `eqArrays`: function to compare two arrays for a perfect match\n* `assertObjectsEqual`: function for asserting that two objects are equal\n* `countOnly`: function takes in a collection of items and returns counts for a specific subset of those items\n* `countLetters`: function takes in a sentence (as a string) and returns a count of each of the letters in that sentence\n* `eqObjects`: function to compare two objects for a perfect match\n* `findKey`: function to scan an object and return the first key for which the callback returns a truthy value.\n* `findKeyByValue`: function searches for a key on an object where its value matches a given value\n* `letterPositions`: function returns all the indices in the string where each character is found\n* `map`: iterates its elements in insertion order and returns an array of [key, value] for each iteration.\n* `only`: function iterates through an object and returns only those items that match what we're looking for.\n* `takeUntil`:  function returns a slice of an array with elements taken from the beginning, until the callback returns a truthy value\n* `without`: function to filter our data by removing some unwanted items","readmeFilename":"README.md"}