{"_id":"@cagregoris/lotide","_rev":"1-e0e5ee8feff119ce785b8a19f6539d9e","name":"@cagregoris/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cagregoris/lotide","version":"1.0.0","description":"Lighthouse Labs Lotide Project","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/cascobie/lotide.git"},"author":{"name":"Carolyn Gregoris","url":"https://github.com/cascobie"},"license":"ISC","bugs":{"url":"https://github.com/cascobie/lotide/issues"},"homepage":"https://github.com/cascobie/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^8.3.2"},"gitHead":"ca6cf15d9eeb4c3b42fc9a4b8bca565f9a008c4d","_id":"@cagregoris/lotide@1.0.0","_nodeVersion":"15.3.0","_npmVersion":"7.0.14","dist":{"integrity":"sha512-pVXSuTyPw9NfXYJpaUIArph9saER4QdS79CJoWRweqvnRU7k4rjWgSBD54nTyCXKtXAA3wD5F37w8pOIY+BdzQ==","shasum":"3ad60a7dcc2a20aca9701e49e15e3b2a1acc0d08","tarball":"https://registry.npmjs.org/@cagregoris/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":22862,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJga938CRA9TVsSAnZWagAAoWsQAIcct3xbQhCMkly+KxMi\nSfJ3FwXeRMdIAZj2dQCJFOdXXwcTaMGFwklQpKFNq+83NPKPc4eJAJgTMXWA\nCcfcXsXCnYYn06qXnIdiDHzSKYZ/VIMZ769a6z//IduZHDgni7r8Dnn3l9LJ\nVIo8HEhEWTB6wYxWkoS1E4zgMfdFj0vEWmkb2uhpREegnVSl9xNSdMvPwdTW\nU11kLBCny+KWf63sKMrlJXfdgA1k89J+r4fJGrECP6ZlBg92WZRelXIsBxjL\nJbV2QhUoaRl/uKist63lKoM/UsCgC5NfxKgTsgqDJimAF9Z8opOns//WdSpI\ncIxN+2n21ILlw/cDcDK406I/DBFpywOwVwkvtEDFt/HIlsbt9cQSwllDjmaE\nWOi1ms5mZYIxp7qVxIOVdninCfMhBmG3ST1CrxmkTK3XgSxZv0F+CykuB+rL\n0IEIr61E6v+50mgvQA0i3zDszmHeMVLK2plIiYbt1bMxlzaFBeFPvrcc8EQ2\nHeuzJnePDmchrYKmOX8epRNHEo7mGdRTtZAtfl0PUYbKpExbiXj6WVSggzZR\nqkl2YDL3+ek5d9qkZEDwcBg7xdBBvLUQsrsgL8bH63wc5GawyuHCe6+81D6J\nyKEC+rLNYGmgoc8OyQMCZePbzhZzgQViYMBMaWhZyWFeEsNpbKVkdSxnAsSu\nHDQ7\r\n=VFII\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQC86WlW92wrkRrRBvbXsMZy9sNAq9Zh9DO91pxIV0FjUwIhAI+krZa3ywfe52n0m0b+l50q6yq+2Tsih2QODlJcYLMv"}]},"_npmUser":{"name":"cagregoris","email":"carolyn.a.scobie@gmail.com"},"maintainers":[{"name":"cagregoris","email":"carolyn.a.scobie@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1617681916069_0.9796181451410646"},"_hasShrinkwrap":false}},"time":{"created":"2021-04-06T04:05:15.984Z","1.0.0":"2021-04-06T04:05:16.258Z","modified":"2022-04-04T21:30:48.895Z"},"maintainers":[{"name":"cagregoris","email":"carolyn.a.scobie@gmail.com"}],"description":"Lighthouse Labs Lotide Project","homepage":"https://github.com/cascobie/lotide#readme","repository":{"type":"git","url":"git+https://github.com/cascobie/lotide.git"},"author":{"name":"Carolyn Gregoris","url":"https://github.com/cascobie"},"bugs":{"url":"https://github.com/cascobie/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 @cagregoris`\n\n**Require it:**\n\n`const _ = require('@username/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 an array.\n* `tail`: Returns every item after the first item in an array.\n* `assertArraysEqual`: Asserts whether two arrays are equal.\n* `assertEqual`: Asserts whether two primitive values are equal.\n* `assertObjectsEqual`: Asserts whether two objects are equal.\n* `countLetters`: Returns an object containing each unique character in the given string as a key and the property will contain the number of occurrences of that character.\n* `countOnly`: Given an array and an object, the function will return an object containing counts of everyhting that the input object listed and was contained in the array as well.\n* `eqArrays`: Compares the data of two arrays and returns whether or not they are equal.\n* `middle`: Returns only the middle elements of an array - the two in the middle for an array with an even .length, and the one in the middle for an array with an odd .length.\n* `eqObjects`: Compares the data of two objects and returns whether or not they are equal.\n* `findKey`: Takes an object and a callback and returns the first item in the object for which the callback returns a truthy value.\n* `findKeyByValue`: Takes an object and a value and returns the first key that contains the given value.\n* `letterPositions`: Returns an objects containing each character in a string as the key and its index position as the value.\n* `map`: Returns a new array based on the results of the callback function.\n* `takeUntil`: Removes the elements of an array until the callback function returns a truthy value.\n* `without`: Takes two arrays and returns a new array that only contains the elements that the \"contains\" array contains and that the \"doesn't contain\" array does not.","readmeFilename":"README.md"}