{"_id":"@albertho/lotide","_rev":"4-69d17f71ff4513ab0303ae35ad271279","name":"@albertho/lotide","dist-tags":{"latest":"1.0.3"},"versions":{"1.0.0":{"name":"@albertho/lotide","version":"1.0.0","description":"A mini clone of the lodash library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/albho/lotide.git"},"author":{"name":"Albert Ho","email":"albertcyi.ho@gmail.com","url":"https://github.com/albho"},"license":"ISC","bugs":{"url":"https://github.com/albho/lotide/issues"},"homepage":"https://github.com/albho/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.4"},"gitHead":"b6ac2b6a0393095c5b3d24f3af4cb5cd376a7626","_id":"@albertho/lotide@1.0.0","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-7Ar6Xu90HZbXzEkRBVv0rasQxH8phxDhvOhFYE6SGZWPWQjlDlV5jNczDS7LZaq8vowlrKWD6goSCuLyUiGkBw==","shasum":"50c3096483bd2e7bb3c7129c9fe83a85ff8787f0","tarball":"https://registry.npmjs.org/@albertho/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":17552,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5fAGCRA9TVsSAnZWagAAnpUP/A0yeOzgrCtavngCGExp\nsJeOgkEzFcFcjrF6ZgHCuc+I4PFuCaqALE5mTIHBR9tQgWDXCkmeleRTQNbi\nDhfE8VfCXRBxIm1gsIDxmcpgDE2K9vxYyib1uPrF7mLgaIAdFuhMBsTmo1SA\n5YMQimSdM7Tuya9dSw5OQmzwQco4gRmRsQ2V52iW5fUiOWe/JE79tIxWIgQL\nQCgQLGOCAU24wM8wFX4UZp4Ln0u390hCcBOxa/fqzGzpa8596kwBBRLn5cE2\nsUpAiNFJQjE1yoCLkpmxt44cbARgQtRnOgSzjnCI/JqS5MY6Fd+/iU8aXDBk\nap59AHo6JJspQyuqZBj7PVwUCCigT6y5cIBT6nAUSjgMjxU5Uz21gyCXM+df\nxAik3Qcy1pa//lnU/W/ACNOqNY+iJpsblsgerBVmHh/R4fPVtYvFo6sckuu+\nALJjfaW3P282ylJi7fOIqSNTx6iLs8TC9lYTM0IJPXPkKlYZxIDen0UYP2C7\naiS+XtiYvT6lf8tKvgCMJ5T4j7lm1w3d/QNVi9B6YJ/djanRl2D94/B2goFA\n9MagZ6Prw15IDFtpUPFlL3IlJeHYkMiKbw8ne5kwL+q7qJc/V7qR5W31r8T8\n7AiFNCqirkOril+zV0tE01Vkeu7sPipC/TZYplyLc55fsCGx4BVjqaXFxHBQ\n7az2\r\n=cDtf\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGbzcQRojGDkH0yYYaXYoHyKfd2wJadAqACb3b26ZhSHAiEA3bZOSTieTKqUcswFOmnl969uuonPhbIFaUZ5+edlFH8="}]},"_npmUser":{"name":"albertho","email":"albertcyi.ho@gmail.com"},"maintainers":[{"name":"albertho","email":"albertcyi.ho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1642459142833_0.6644966939428973"},"_hasShrinkwrap":false},"1.0.1":{"name":"@albertho/lotide","version":"1.0.1","description":"A mini clone of the lodash library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/albho/lotide.git"},"author":{"name":"Albert Ho","email":"albertcyi.ho@gmail.com","url":"https://github.com/albho"},"license":"ISC","bugs":{"url":"https://github.com/albho/lotide/issues"},"homepage":"https://github.com/albho/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.4"},"gitHead":"b6ac2b6a0393095c5b3d24f3af4cb5cd376a7626","_id":"@albertho/lotide@1.0.1","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-qWeX7JOMpx758ek0EwstUH6otTWA8aDehNZbsDaOs6++PhuMztDbQE0Wjm3uxEVEfPUxeAQ2ltbb74fcpo9mZA==","shasum":"dbaf68e78a44409dededc102dea9fe98f6445a4c","tarball":"https://registry.npmjs.org/@albertho/lotide/-/lotide-1.0.1.tgz","fileCount":37,"unpackedSize":22283,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5hktCRA9TVsSAnZWagAA35EP/R/tMP0wZ55seSsHDOMk\nQmHGkVvEZEcczblm0Mv6CAUJT1CICd+kX9ZjFY6ddB6iagUwmF5rLm3rBJR0\nsbkShwy0P8KqNGILm7k2o3XQfzRZbIFnGi2RyTXKJDjNJsDPxm4+0ztJeUey\nWsRmw1c5jQnciLHmBQZhH8zqKFWSpewSPYa86MlEF4e9DAK+kf1QN9lsymiS\n9tG0t7joI4ytRUx6OFtwa6BEqMiGIAJydoGr5ByVurSI5ynEPN1c5lPT9T/o\nj5EA9IIzbzy9eQJ6uBsvvtH5Efxij6ZsUcS4tMacEGxt0UrvLgZagG5QfOZu\n/u0Rw76keJtJXbKHOOnjii+SxlsTaA2QMzmf5PcrhFHUZhYthYkJV2c+LjPb\nRfPbppi3AU3ObRmYBh1ZeCmfYyolaEIbwHDtW0V/TdK9GzCFEG8+kPIRR3fS\n94wmpnLfYKv8FTXJGafINQqO6lxYPPxy4MxY09KE6i2zKcMHWesC0zorjHDK\nXT6SVE1oMf0RDDDfxjaTVYtSxdgoqsl5F3RR5t9obJFXVs7Y1x2foi9x87BZ\noBOvfs2tCFQ3MtCC7gm+YxrF6A+dAZcvDFyFLhYL5iYXs9g2g+kIbQrhRiYV\nYmdarH1SVelUYUHvXLT3B13Hfvlv6szjLVeWLEkPqdjF+fqMK9KHwcun6Zbk\nUUZw\r\n=OVan\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEkhu6Nwa5Yd5Dwu73U6L/ZNM1DLJaKP2oxvf6JRmdP9AiAoSTfHqUXkpgRkyjMJUp9+yfdvcJw8ewsSk6evxhtEmA=="}]},"_npmUser":{"name":"albertho","email":"albertcyi.ho@gmail.com"},"maintainers":[{"name":"albertho","email":"albertcyi.ho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1642469677556_0.3722857442824845"},"_hasShrinkwrap":false},"1.0.2":{"name":"@albertho/lotide","version":"1.0.2","description":"A mini clone of the lodash library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/albho/lotide.git"},"author":{"name":"Albert Ho","email":"albertcyi.ho@gmail.com","url":"https://github.com/albho"},"license":"ISC","bugs":{"url":"https://github.com/albho/lotide/issues"},"homepage":"https://github.com/albho/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.4"},"gitHead":"0f2bd4b0dd9975962319cecc110f464d028272a9","_id":"@albertho/lotide@1.0.2","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-rJ8aw53/T8u7LRUgE5rCP85aD17Wk6pd+YtIZdRu6emwQ44EOFsrQCnbOTdQHWXm91g/iOmxAWsab4GGi7hW+w==","shasum":"a44254c808ce445e899946b7f630f8b137469a67","tarball":"https://registry.npmjs.org/@albertho/lotide/-/lotide-1.0.2.tgz","fileCount":37,"unpackedSize":22783,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5hvdCRA9TVsSAnZWagAANXgP/jSiFd6dhrzjW71ayaJ5\npx7u9VqrUfRn6JNUK2/0xQJgzYtE/Z4+ckv273ZOj+djSJb9reNzYBuwVbJJ\n6jvIFXkZSuc6lpG7pAzp2EupcDr7QWpHJQ0eLDJE4qRFc4Z9qAgp+EgbFl5q\nhgDGvdvS1ZVKKm4WlOVZf+Nc70VRE5Hmif62EBobTWFz7+de/E2xMJboSAty\nHVAoJNrag19HQWmjUK9RfKG9S7Xi9EULTk7LfQjtdnJ6OyqCBEDu7PpjzGZW\nBuJsV3EPiGLZrDz9t3doMJBHt11boxBEY9mqqHoNU+NGOLoTjXMJcv2qe0I5\nxDtQ2xMQ0Bc4nbfqljbev+qhHV6PjGb0eDfEiX/nDYEq4gbo2RR/F1J+Uiqs\n0Capd6EZvSXzRsABV2XEOrl2ga2AWG5Br6cgdnxPGEoXwAV4OBYGV+kHMiW/\nSPRKAyq+RNAO7q96GvufiQWVgRTO7L3hDIqdXQqLAU0qCqwuvxi9iSq2p1yS\nZ8XUobBN50dhI8KeNiJ1A8u7M9OUJOJpPebh7Za9t4QVYDqeTwLUQqQBPzHr\n3JOVeJGlUQjoZ2Ki9n8oObqkr2Ft3DECgI2Z9gH3ga/6T2B1E93Nai5t0WT/\n4zY6PxDCNSeJNKipsd0xfOA7vOnMoJD2QsxTY72hswy5sD52lF9J1n/UlPtK\n2u/X\r\n=G+DD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC6PpdXVfWvPQj9iuvTKlI4z6iDfIRnDadrdxKCOHhb6wIgYDtN2V65SbbwZSWMJ3SeEPN68l7+Fbuq6yFH0Z/AHYg="}]},"_npmUser":{"name":"albertho","email":"albertcyi.ho@gmail.com"},"maintainers":[{"name":"albertho","email":"albertcyi.ho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.2_1642470365718_0.3926871587187075"},"_hasShrinkwrap":false},"1.0.3":{"name":"@albertho/lotide","version":"1.0.3","description":"A mini clone of the lodash library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/albho/lotide.git"},"author":{"name":"Albert Ho","email":"albertcyi.ho@gmail.com","url":"https://github.com/albho"},"license":"ISC","bugs":{"url":"https://github.com/albho/lotide/issues"},"homepage":"https://github.com/albho/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.4"},"gitHead":"3a699ed7ca43281be5f551f4c0811d6e599ef598","_id":"@albertho/lotide@1.0.3","_nodeVersion":"12.22.7","_npmVersion":"6.14.15","dist":{"integrity":"sha512-lBXKtDKQC/fYAAWCU2C+s8sTd3bEC/4gV88cOiJa2W6awfSEPfUVYclE8wCPzD0UIpw2it/wPNZjB5YUpy1NGQ==","shasum":"8c38742de14570ba00f83a951fc8255e510f3c3c","tarball":"https://registry.npmjs.org/@albertho/lotide/-/lotide-1.0.3.tgz","fileCount":37,"unpackedSize":22789,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJh5hw2CRA9TVsSAnZWagAAJz0P/Rl+88OZ/kd2zyjqP5ao\n7EN01zcUZ7353vwaV0jIAh+dYck1WxUTHrQaJHyiFsupOdKYTcneqGHeaWE2\nI+Mfm9iCbxOcLK0prPhWIrdChkDeGT8A5MhiFMhVjIHTeorJzEN8r5enyE1N\nkBt9OgxnrZkXdeoK1yQ59j60jwzenOl+pdf+ho+bMJR4u8lFQ5cZTxxR2oXV\nJgA5Rs+0O0HkgpbighhPWF5Q6r9KI/UxZHHJvAgz0u+zrPBt1OGxUu7s28hI\n/iBgOTEZQ6/IEPKEQ02c6r9zX3L1Xnth4y4CchPiSNICXJ5xHpIU5eu0nukK\nwce2PO8lJtPw9TeuOf9/x9bKF/ZK8xUiBCKBm0vRfbpGG2yEklTA9niIqxqG\n1IuZSrnhIXcow+ts8UHGhq/N3gmsTGdIBAdyG8lW3a0Q8yYVBA81cIdKrLoW\nGk0yz0g8KQJ6o3vPepG2NAhnaiIXjrD+YUPvAJIfTTBEg7Kp5yjk8vU/lSvD\n0wjFUfQVzHg4OGu4LRKNA8bpV/JXnEUGCS4NeoHonJ/s93B0Yqs5a6e8NZkr\nWCW1apKo6wKN4je9M94fVSA0ywRflYYAkuBL3X9V7AZSslkNTDUM9EgSqEwB\n8nPbnZXH31Y+Vvoy2dTuSqU51XrSjjG+RJAJlzb5t6qGcs7bimAgTGFLUNKN\nl+sf\r\n=YrZ7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDJGJD/HYZIjJbeDAczrCugsLn3F7zQsYSonNuinwIl2AIhAKZqDYCd5XN3DEVWSeUaMvLjjofM1zH1A5vzJEfY9hT+"}]},"_npmUser":{"name":"albertho","email":"albertcyi.ho@gmail.com"},"maintainers":[{"name":"albertho","email":"albertcyi.ho@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.3_1642470454355_0.3021156829719276"},"_hasShrinkwrap":false}},"time":{"created":"2022-01-17T22:39:02.767Z","1.0.0":"2022-01-17T22:39:02.994Z","modified":"2022-04-04T12:35:23.703Z","1.0.1":"2022-01-18T01:34:37.719Z","1.0.2":"2022-01-18T01:46:05.861Z","1.0.3":"2022-01-18T01:47:34.514Z"},"maintainers":[{"name":"albertho","email":"albertcyi.ho@gmail.com"}],"description":"A mini clone of the lodash library.","homepage":"https://github.com/albho/lotide#readme","repository":{"type":"git","url":"git+https://github.com/albho/lotide.git"},"author":{"name":"Albert Ho","email":"albertcyi.ho@gmail.com","url":"https://github.com/albho"},"bugs":{"url":"https://github.com/albho/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 @albertho/lotide`\n\n**Require it:**\n\n`const _ = require('@albertho/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* `countLetters(str)`: returns a new object of all letters of a string and the number of times it appears in the string\n* `countOnly(str, obj)`: returns a new object of only the letters of a string found in the second argument and the number of times it appears in the string\n* `eqArrays(arr1, arr2)`: returns true if 2 arrays have the same values; else, returns false\n* `eqObjects(obj1, obj2)`: returns true if 2 objects have the same values; else, returns false\n* `findKey(obj, callback)`: returns the first key found that passes a callback function (passed in as the second argument)\n* `findKeyByValue(object, value)`: returns the first key found that matches a given value\n* `flatten(arr)`: returns a new array with all sub-array elements concatenated recursively\n* `head(arr)`: returns the first element of an array\n* `letterPositions(str)`: returns a new object with a key for each unique letter of a string, each with its value as an array of the letter's index position(s)\n* `map(arr, callback)`: returns a new array of elements that pass the callback function (passed in as the second argument) \n* `middle(arr)`: returns the middle element of an odd-length array, or the middle two elements of an even-length array\n* `tail(arr)`: returns a new array consisting of the the tail of the original array\n* `takeUntil(arr, callback)`: returns a new array of all of the elements of the original array up until a stopping condition, dictated by a callback function (passed in as the second argument)\n* `without(arr1, arr2)`: returns a new array of all of the elements in the first array not included in the second array\n\nSome additional assertion functions:\n* `assertArraysEqual(arr1, arr2)`: returns a `console.log` message comparing two arrays\n* `assertEqual(val1, val2)`: returns a `console.log` message comparing two values\n* `assertObjectsEqual(obj1, obj2)`: returns a `console.log` message comparing two objects","readmeFilename":"README.md"}