{"_id":"@charlielhl/lotide","_rev":"1-88f25ddb9eee91b6a72d7f7235edbbdb","name":"@charlielhl/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@charlielhl/lotide","version":"1.0.0","description":"Charlie Curry's lotide project for Lighthouse Labs","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kickycaptain/lotide.git"},"author":{"name":"Charlie Curry"},"license":"ISC","bugs":{"url":"https://github.com/kickycaptain/lotide/issues"},"homepage":"https://github.com/kickycaptain/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"61fb00164c3f10c233366ac06515119ac6d0cf79","_id":"@charlielhl/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-oqDtOOr8LAkzyUwos1jMeLuk4qkchi3NP085QXh/OBL6RPZ1QHMGrC/S8eDcDb7ZQsAZWukI3SxKrMOqbel5SA==","shasum":"0c1df4662c7f8839c88d2bfd79a7b48675951da3","tarball":"https://registry.npmjs.org/@charlielhl/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":27181,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC27jJOEMgT2xj0kt4xIbZITQMcc/JauWwtMniYXiNQ8AIhAPNwGlNTiPfUFeD+PhvYdcfX9vRGAgxgi76LE6af4oJJ"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjSbKrACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo1Dg//R+iw34GPxnOdQzd7RlHHuYrWUMy/NnukheC4apLz+NpwgIiD\r\nhxV0CcUrrvOx5QZwG4Hgcx889w2575UrOR0FxZcFkiXTN1XTpcXDV+STT9un\r\n0a9Qb2vRuEWW193ApJo8AN80UqPEok8HSFrehRYfkBkQVXoBy2jNCiLLECHj\r\nFr3aPqiy+GfdBxnl4OkVl10b5r8HdZsiQDBVb/iON+RFGNB7cD0a2Xjt9hrD\r\nxzBSOORYpmua/ieJhhjXrbZHR56mP2Fgq9AJGBURC8JYHwxOGVpFv5rzMCrP\r\nD7T97NbUPlE+9fjv23Vn4JAhAN8+vTWwSn4zmPsyEtk4lH/uY2LPNuJAqTFq\r\nDY5hl/xl3xieBhH6wlmxsyUgWPt6Ng/wrZCoRVKsXcrao2R7XyCIoBNWyiHh\r\nEIMUvwjWJilqzscpGaX53hIHtTBNY+N4RwSKiKwnVWeMI4VRgW5bWXpYLPO8\r\n2R98cq35SOIcFdVkzARjT9ELky7KxYjMaPxMhVygpityVVZ3JSU4bkW74+1n\r\n7rlcr0XPDHiEIV8sXiWiPrJPfCLNzagxkG5tOeRAp+Ns41z3Df8utKoD0Js3\r\nBiTdOZIOZcVa0M0+rEkmhiicqb8V+KyqKP5ovTFYxWbDqUuZ/Mx1/cXy1RSi\r\ns2+B0L22/uDe1+HqGi10SC3YhEqgFenHBaQ=\r\n=wZjk\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"charlielhl","email":"charliecurrylighthouselabs@gmail.com"},"maintainers":[{"name":"charlielhl","email":"charliecurrylighthouselabs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1665774251213_0.3206556542288692"},"_hasShrinkwrap":false},"1.0.1":{"name":"@charlielhl/lotide","version":"1.0.1","description":"Charlie Curry's lotide project for Lighthouse Labs","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/kickycaptain/lotide.git"},"author":{"name":"Charlie Curry"},"license":"ISC","bugs":{"url":"https://github.com/kickycaptain/lotide/issues"},"homepage":"https://github.com/kickycaptain/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"4cc75d0882e1989fac0997a730f2a0a1749c73ee","_id":"@charlielhl/lotide@1.0.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-66CNOQ1mRFc0LEB6i2y/UW3sRc+J2apvqn4wMCNuXSnYd5eQd/gyGcoJA5OGpp4mRVZPrK2oZ2Svbp9e6/kgrA==","shasum":"6baef498b2ddf06a810db939388a365e13893162","tarball":"https://registry.npmjs.org/@charlielhl/lotide/-/lotide-1.0.1.tgz","fileCount":27,"unpackedSize":23276,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHR6JRfQEtUYw1smhH/on9NQT7FBCoMjAxiqtG9G5dcGAiEA2IcCPg8aG2dZe+VLxw28ei0itQbZFeNj4uL9zR3WOr4="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjVHpwACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmo/UQ/+ILOVXDeCyrGEli9WOzbYwoXy1indxHwdYp+B17eylQS9KPTT\r\nrfTksECkTsKiO3mJrzJDp2nwi1dYRIyVPVND7wikhNOEQy+iWZiX5H044ggY\r\n/A5Sx/iXzY9Ky7/f4qvVYFovAXVv3NDKtTZNKYMAs+9tdZnHaO7vYt+37Gg7\r\nRG1BVqPVi7lZOyelZQXEgI5XJqoYFcMEdEFkg00y2dhns0LJs78gltx4hpwv\r\nJnidoAxetZANZdVf7bA0V0ozmBpGyV//VLRD4KyD/IrQqSkAHbl9YBj9WlgE\r\nYIl2Iq0ssdT8LoVhehYS3Zm3nTFOUpr9DthXgJUZhimRujHdb+yMF6F5W+7D\r\n5JgURpv44Fm5jWJd5n5XBK/M+x6k7Qvi0wUlcXi+1XL8vmkRouJKV9GFxLkW\r\nzdt6Yze2Ap9dRui2mqqj6bwuPgeFUgA7mBUiTw/mhT+5RWcNK8mJ7gq6OL0y\r\n8eNN+q429xLdXyugcPgLDRjcdWwjqB60GGWCahuR25g1SdrzMcvRlYE7p08Z\r\nekrnhscIBj1kvKCz5LNou97EtFMslQghLbGuc3YUrxXV+laU+6ZL/XPhRucb\r\nd+qeh7k77/F2bSR6Mx6GRtllw10/98TO9+b0AQ1tEVCHHUHgSoJ4Hqcgo2Ae\r\nsPLVYEUaPkZc5AP3wJm6hWa0vGbJsyfGJRA=\r\n=NIEQ\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"charlielhl","email":"charliecurrylighthouselabs@gmail.com"},"maintainers":[{"name":"charlielhl","email":"charliecurrylighthouselabs@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1666480752461_0.3449969823846193"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-14T19:04:11.153Z","1.0.0":"2022-10-14T19:04:11.422Z","modified":"2022-10-22T23:19:12.720Z","1.0.1":"2022-10-22T23:19:12.634Z"},"maintainers":[{"name":"charlielhl","email":"charliecurrylighthouselabs@gmail.com"}],"description":"Charlie Curry's lotide project for Lighthouse Labs","homepage":"https://github.com/kickycaptain/lotide#readme","repository":{"type":"git","url":"git+https://github.com/kickycaptain/lotide.git"},"author":{"name":"Charlie Curry"},"bugs":{"url":"https://github.com/kickycaptain/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 @charlielhl/lotide`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@charlielhl/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(array)`: takes an array and returns the first item in it\r\n* `tail(array)`: takes an array and returns a new array with everything except the first item\r\n* `middle(array)`: takes an array and returns the middle item of it as an array (1 item for odd and 2 items for even)\r\n* `assertArraysEqual(actual, expected)`: takes two arrays and returns a message corresponding to if they match or not\r\n* `assertEqual(actual, expected)`: takes two basic inputs and returns a message corresponding to if they match or not\r\n* `assertObjectsEqual(actual, expected)`: takes two objects and returns a message corresponding to if they match or not\r\n* `countLetters(sentence)`: takes a string and counts the amount of each letter present in it\r\n* `countOnly(allItems, itemsToCount)`: takes an array and an object and returns an object with only the specified inputs counted\r\n* `eqArrays(arr1, arr2)`: takes two arrays and returns a boolean corresponding to if they are equal or not\r\n* `eqObjects(object1, object2)`: takes two objects and returns a boolean corresponding to if they are equal or not\r\n* `findKey(object, callback)`: finds the first key of an object that matches the criteria created by the callback function\r\n* `findKeyByValue(object, value)`: returns an objects key that matches with the given value\r\n* `flatten(array)`: takes a nested array and returns a new, un-nested array\r\n* `letterPositions(sentence)`: returns an object of arrays showing the indices of each letter in a sentence\r\n* `map(array, callback)`: applies a given callback function to each item in an array and returns the result\r\n* `takeUntil(array, callback)`: loops through a given array until it reaches a condition stated by the callback function, which stops the loop, and returns what passed through thus far\r\n* `without(source, itemsToRemove)`: returns a new array based on the source array with things specified by the itemsToRemove array removed\r\n  ","readmeFilename":"README.md"}