{"_id":"@carmtsang/lotide","name":"@carmtsang/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@carmtsang/lotide","version":"1.0.0","description":"a mini clone of the lodash library, created for learning purposes.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/carmtsang/lotide.git"},"author":{"name":"Carmen Tsang"},"license":"ISC","bugs":{"url":"https://github.com/carmtsang/lotide/issues"},"homepage":"https://github.com/carmtsang/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"gitHead":"74752082b70b984aeb675620060091bcbb4ad360","_id":"@carmtsang/lotide@1.0.0","_nodeVersion":"12.22.8","_npmVersion":"8.6.0","dist":{"integrity":"sha512-G1eKD27yI0ArirQUwfihIaxeGchtwyUDy2G9d0Ipy65Qq4RdM6oFgS1lqRIYmpybZK0DnzMVlXwT5Y7gxSTt1g==","shasum":"3aca69df3ef9761f0602883edff6ce3d4d051ba2","tarball":"https://registry.npmjs.org/@carmtsang/lotide/-/lotide-1.0.0.tgz","fileCount":31,"unpackedSize":20757,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIGDI8dbhqrkbeSPHUUHTe98+EgMeDtNT15xJfkRUtZOLAiBeIdJVli9wogEgZs63TfW0Vwulvm0K7Y4XdGoM2+VafA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWjQmACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpYWQ//e2V+BdwhHuLPTjotkN1KO6bo6gHFcqS45DehUhjPtimNfIsU\r\nr8DUGZtkMRIvSDPGfUYTkG56fo0NSPSGjfMEg1vOvNILJXtLURUpRRHBfupi\r\nJivlXX5pyVVy/wxbYNbINUPNvcr3z1xPVIcmWX3fG/p06/2DUJh4VVM/XREt\r\nl1yIBHi4VqaCFU6dmGAjyNJMJvJ1Z1zV2f/rdLFAqHLCTw3iue/jeCwcvDEq\r\nGOlSsHwlfwO0mqhckjWcRQEzfCXn2njWyDbw+Z+8Nha4R/KbN1++zud27LUa\r\n4HlCesqmcrdSuzIVEzPwAJL3pTiqeldQPNmetLXriGXTo1mF3p5BjxdhOFKy\r\nmgMsSXKFTRFFeh6UW6oMebAGxsaiZAWbUSLF1b/DtL1T+jloJiCCR+APA138\r\nNU3n3dxNMyPcCpNcOlsCj1/00vx6KJ8iRqgi0vr9OuGv8yhi0Ph8Cg9ue00E\r\n0M/5LPDho3wLkaf8av/3UkndevUfdFm7JfhSD4mViQLrukZ8I2S0wiZ1mxqe\r\np/zL+NpNtbkKtFMylnlnBDiG0CbEWcJbu73QW6YvXF2TS4npOAZ6gTywUBy/\r\nvVcSw2N2se58BrNJ7JNIiu85lXmR/Ix2WN36LgY9QGbKd4d+4cdZITrBMDMc\r\n2LGxv6Jqg1Kz5uFWGwvsH8qdb/KgKgOP9fE=\r\n=TaLX\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"carmtsang","email":"carmtsang89@hotmail.com"},"maintainers":[{"name":"carmtsang","email":"carmtsang89@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1650078758767_0.049540282518833134"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-16T03:12:38.609Z","1.0.0":"2022-04-16T03:12:38.945Z","modified":"2022-04-16T03:12:39.063Z"},"maintainers":[{"name":"carmtsang","email":"carmtsang89@hotmail.com"}],"description":"a mini clone of the lodash library, created for learning purposes.","homepage":"https://github.com/carmtsang/lotide#readme","repository":{"type":"git","url":"git+https://github.com/carmtsang/lotide.git"},"author":{"name":"Carmen Tsang"},"bugs":{"url":"https://github.com/carmtsang/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 @carmtsang/lotide`\n\n**Require it:**\n\n`const _ = require('@carmtsang/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* `assertArraysEqual`: Assertion test that compares two arrays\n* `assertEqual`: Assertion test to compare two primitive types.\n* `assertObjectEqual`: Assertion test to compare two objects\n* `countLetters`: Count the number of times a value appears in a string.\n* `countOnly`: Take a collection of items and return coutns for a specific subset of those items\n* `eqArrays`: Compare two arrays for a perfect match.\n* `eqObjects`: Compare two objects for a perfect match\n* `findKey`: Scans an object and return the first key which the callback returns a truthy value.\n* `findKeyByValue`: Scan an object and return the first key that contains that given value.\n* `flatten`: Flatten array by 1 level\n* `head`: Return the first value of an array\n* `letterPositions`: Return all the indices each letter of the string\n* `map`: Creates a new array with the results of calling a provided function on the elements in the calling array.\n* `middle`: Return the middle value of the array\n* `tail`: Return the tail of the array\n* `takeUntil`: Return a slice of the array with elements taken from the beginning.\n* `without`: Filter out array and remove unwanted items","readmeFilename":"README.md"}