{"_id":"@calvinhwc/lotide","_rev":"1-b4cdb0dfb80d4ed5c4ae6549d9c83a1e","name":"@calvinhwc/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@calvinhwc/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Kikstyophobia/lotide.git"},"author":{"name":"@calvinhwc"},"license":"ISC","bugs":{"url":"https://github.com/Kikstyophobia/lotide/issues"},"homepage":"https://github.com/Kikstyophobia/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"ce674fd3ec6c4adfd0108eeb0e0f7355a1cc593f","_id":"@calvinhwc/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-3H1PFemMMjRdPKWTsnIAwccDW04Y7pCIJVWc+mEsBZBAgMYm3kk27ZUBkGQeqGCdiNzQWjFYUcwaGzaEnidqWQ==","shasum":"ae1d92e81a969fa3990d34bcd199189619c28c1f","tarball":"https://registry.npmjs.org/@calvinhwc/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":14631,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiMAOZACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrzDQ//a9Zfd9iPPHJD1KFCTDhhW3GpGp1uaQP4I0hlyflAtygHvsZB\r\nUQupCg5Nht88OGnzThhoo9ZQqTyjg1Vb8kMcjI1W4Qv19eHJb15kDSqHVncV\r\nI/gyQHwgVAS6SD6KFjFWJVcoRp77pENMrkd186eJfN3kzoRxzVerUum5Jc7o\r\ntRMfDe5NrZ5s5zeqslq4At3Ua/bSpbBVtWXwVzLiXa+TBP+NEzL55UGvH58P\r\nR12iEdS0yfYzLmN0iKNOmjJV520t5FeQwfuNBtZFH9ZdilBZi7sKLB5ieBxs\r\nnQ+CimWMnl68QXz63L69V6WpFbtFTcqLVtbSXuFUpGOWqcLXjxziq/FaJiK7\r\ngOCMzevF7UuSRsgylwNgUs/+lpzjQ+ghRcOuJcUPF8Da/vS6R3ZnkhGuGRgk\r\nNwi5FclNnvSugfbV0rvpVJQ3gInL+JmRggprBiV+hDkehgdcd81CKDSw462w\r\nhb1TXP7oK4lmjMlsYMbCZGquzbGb3Pc7/NBayPkipDaTmHQG7gOLGE0HiODk\r\ng4+qjRMOR9XTs2KpnNcBm9FkeEEvcRM1I9u8dwk42OrNa2cryBvZHF2uTgH9\r\nsd11i9SO5oCgiJTrbWkCnRVBlNEOYv2XZi+McErq97GLtxL3kOrxnOlKAEMI\r\nn930kfQ4B/zyA670S5AGSEqzSKb87X2XQNo=\r\n=M7C1\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIErjTYiRWOvF6G3dyqnXEP0RDAhU2qhUtXQmeZqVcPGqAiAMg7y5NM14WYHxByr+uxY1jSLff4zUQEbwVY1ybzkRyA=="}]},"_npmUser":{"name":"calvinhwc","email":"calvin-chung@live.com"},"maintainers":[{"name":"calvinhwc","email":"calvin-chung@live.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1647313817522_0.11457148918799231"},"_hasShrinkwrap":false}},"time":{"created":"2022-03-15T03:10:17.449Z","1.0.0":"2022-03-15T03:10:17.712Z","modified":"2022-04-04T21:33:37.080Z"},"maintainers":[{"name":"calvinhwc","email":"calvin-chung@live.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/Kikstyophobia/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Kikstyophobia/lotide.git"},"author":{"name":"@calvinhwc"},"bugs":{"url":"https://github.com/Kikstyophobia/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 @calvinhwc/lotide`\n\n**Require it:**\n\n`const _ = require('@calvinhwc/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() - returns the first item in the array.\n\n- tail() - returns everything except the firs item (head) of the array.\n\n- assertEqual() - will take in two primitive types and will console.log a statement stating whether they match.\n\n- eqArrays() - takes in two arrays and returns true or false, based on a perfect match of the contents of the array.\n\n- assertArraysEqual() - takes in two arrays and will console.log a satement stating whether they are equal.\n\n- without() - will return a subset of a given array, removing unwanted elements.\n\n- middle() - takes an array and will take in an array and return the middle-most element(s) of given array. For an input with an even number of elements, this function will return 2 elements. For an input with an odd number of elements, this function will return 1 element. \n\n- countOnly() - this function takes an object of items and returns a count for a specific subset of those items. It will only count the specified items.\n\n- countLetters() - takes in a string and returns the count of letters in the string. \n\n- letterPositions() - takes in a string and returns the index(es) of where the letters are used in the string.\n\n- findKeyByValue() - given a value, this function will return the key of where the value is located.\n\n- eqObjects() - will test whether the keys and values of the objects are identical. Returns true or false. \n\n- assertObjectsEqual() - will take in two objects and console.log a statement stating whether they are equal.\n\n- takeUntil() - takes in an array and returns the contents of the array until a specified value in the array. \n\n- findKey() - takes in an object, and a value. Returns the key in which the value is located. If no key is found, it will return undefined. \n","readmeFilename":"README.md"}