{"_id":"@arenritz/lotide","name":"@arenritz/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@arenritz/lotide","version":"1.0.0","description":"A barebones copy of the lotide library made for educational purposes","main":"","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/ArenRitz/lotide.git"},"author":{"name":"ArenRitz https://github.com/ArenRitz"},"license":"ISC","bugs":{"url":"https://github.com/ArenRitz/lotide/issues"},"homepage":"https://github.com/ArenRitz/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^10.0.0"},"gitHead":"720d5c4aaec4ea359af34f3dd3f883526d308732","_id":"@arenritz/lotide@1.0.0","_nodeVersion":"18.4.0","_npmVersion":"8.12.1","dist":{"integrity":"sha512-+5xWvwk5K6OZdu3JsttmjunXMqwyt0cVhu0Yb4muTq894dDVUogx7NReyU79Pa+cIBuIgMvEEe0lB0YVUx6ObA==","shasum":"e3fbc87b5f848f2ae95b527e80e15a6752beac0b","tarball":"https://registry.npmjs.org/@arenritz/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":21483,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDJla39dcCIKF3KslWhgeTqTMUCNDDXD6N8c50bHKgMuAIgbhFs5sPT+OfeXkoU+jFpn72OhXXfMfpm+806uLYCPxY="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiw2yYACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmp+/Q/+JlfzeVOLtExTNKafrRfmOCGIBCxwFpNKkUWhLH2y3QH9uL9B\r\nofUPgP9tatcZkPdR2nLJtT5RcwHJpbQJoVGHYtnSyfkO184KtVIQmccy6lze\r\nI+FgTlXfhLxLY8/zq4gCf0jggVtPlCCjrPEH+fsTHXxfxVk9YqFICR+4dtVj\r\nGpS4GCIurBgKbO65LTE8gKsg0fPjeXOPkHxSxn1QsRg7eDchYdOBOrcDr2MN\r\nI50IOqChQBiCBJcj1pRBKJDMbfmV431cztax7ERY+0h2cnXymmLed3Wo8+sM\r\nn0n1rS+TFIXFIximLRPi3N4Ef9s/mcoE01DWZ61i+y1TRMW3q0HwhvdbouAM\r\nBcFALWxhiWU7M6rPFR6BL5vdo+MGRP8+TI7nteOY2STXMB1y3ffj8LGbaDQ8\r\nGDakosqdUPhKJXvFmjTFUd8OtzdkLLLbVxx+V81XsijqN1jHv82BVbtm5/eF\r\n8sMho7ma1UGjp/ehwzbLP5Cqmv+5juYZ7jX/QWWucAliMfuIoWJcqgcBbP1z\r\n8SLJyNF6OiJBe829gdq69AGjlJk2XjhnWa2r8KUQxR1Or0SrgmN59lO8mITq\r\nkAYT+W5NC3I9r4lEriXJQdV5tWcJDh0tsRKhugTa1csMFN054kwceOFeAxEu\r\nwDqdLoFjLqAR+rKKzsCgklkQFCCzwoKRDDc=\r\n=5sGN\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"arenritz","email":"aren.dolbakian@gmail.com"},"maintainers":[{"name":"arenritz","email":"aren.dolbakian@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1656974487865_0.7948313858582987"},"_hasShrinkwrap":false}},"time":{"created":"2022-07-04T22:41:27.806Z","1.0.0":"2022-07-04T22:41:28.027Z","modified":"2022-07-04T22:41:28.186Z"},"maintainers":[{"name":"arenritz","email":"aren.dolbakian@gmail.com"}],"description":"A barebones copy of the lotide library made for educational purposes","homepage":"https://github.com/ArenRitz/lotide#readme","repository":{"type":"git","url":"git+https://github.com/ArenRitz/lotide.git"},"author":{"name":"ArenRitz https://github.com/ArenRitz"},"bugs":{"url":"https://github.com/ArenRitz/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 @arenritz/lotide`\n\n**Require it:**\n\n`const _ = require('@arenritz/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(arr)`: Returns the first element of an array.\n* `tail(arr)`: Returns the array without the head(first element).\n* `middle(arr)`: Returns the middle value of an array, if it's even the middle 2 numbers.\n* `without(arr1, arr2)`: Returns a new array which equals the element of the first - the second.\n* `takeUntil(arr, val)`: Iterates through each item of array and pushes them to a new array until it element of the array matches the value.\n* `assertEqual(actual, expected)`: Checks strickt equality between two values and console logs the result.\n* `eqArrays(arr1, arr2)`: Returns true or false if the arrays match.\n* `assertArraysEqual(arr1, arr2)`: Uses eqArrays to log if the arrays match.\n* `eqObjects(obj1, obj2)`: Returns true or false if the objects match.\n* `assertObjectsEqual(arr)`: Uses eqObjects to log if the objects match.\n* `findKey(obj, val)`: Scans the object and return the first key for which the callback returns a truthy value. If no key is found, then it should return undefined.\n* `countOnly(arr, val)`: Returns how many times the value is found in the array.\n* `findKeyByValue(obj, val)`: Returns the object key which contains the passed value.","readmeFilename":"README.md"}