{"_id":"@cogarvey/lotide","name":"@cogarvey/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@cogarvey/lotide","version":"1.0.0","description":"a modular collection of functions that operate on data, namely Arrays and Objects","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/cogarvey/lotide.git"},"author":{"name":"Colleen Garvey"},"license":"ISC","bugs":{"url":"https://github.com/cogarvey/lotide/issues"},"homepage":"https://github.com/cogarvey/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^10.0.0"},"gitHead":"2ebc25618904a17f59f6567b4baf173081dbcef6","_id":"@cogarvey/lotide@1.0.0","_nodeVersion":"14.19.3","_npmVersion":"6.14.17","dist":{"integrity":"sha512-jN+OvJ5q8wVRUEKGAEegAnAS54lJjXX+Imh5E+FGGmquiCuPy3nkGcv06majI1NXxf5kL9bI/Soz9z365HCpnQ==","shasum":"eb78475a8ce30bfe1a28981fd92dd16a052ac6f7","tarball":"https://registry.npmjs.org/@cogarvey/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":22271,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEs7RUTjdOVME77NwE1xf0TXaWECR5Vo08hRO/KVPtF/AiEA1uTeB5sJ650qJ8I0oS528mvJqBNjLuqylld42moK/FM="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJinoGOACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmq2NQ/+M6GjyOrMkEt7OHSXpuSv/yRLtJpGOW0K7cP5Xq8lgSrVPAeK\r\n6tQHEeWGM7nQpxbzss7c7o/HHw8HskO4I2GSVBjTdgHkH4GAXTqZVVyoWqgz\r\nVMpmaOo/5rZOGdHz3/hw3CMNva1Qwr6/39pRjvcEot164asZyOTsgQXI09Kk\r\n1RU3MuKeU6/EdT++2KnjBBTE8o1AU4pjHwSsdnlhOt7U7W7dXehMKL9QXhuz\r\nsBaRAVHKxbiyJYA4pVXbZuVZnX2y4fg4cVV/zFswGHquwqxjmnDHRTfgpG+Y\r\n0/FS7my8JLHCh0JYf1yxVzoYTPPne6GxZi4vwWFe0DNNDKCZgETEpl0Ea9CZ\r\nBPUKdsmQmPef3VsjdcFnvTTXatdImO0e0prIsv2FYEOVU4VH95cJpgrQ4fYe\r\nLbAQcq9G/5KnMcN5vbHtAz60ia4pvyym3v7RaOg/vH3SHVFVjZS9TkwXcgr2\r\njrBsoZGaVzrvyTUj8s0MOYjPHdl0HGZc9P7IhORtWNprx4tww6O7S+RcBYQ1\r\n0Di/s8NOO3c8hOMlwWf1FprDumIdz8RZVBpvnN+vKtxi2FsX4RuXtoEU4fue\r\nyMt33OPKklA1B7aJQEMlyDU/3viJeJcaGAvfJZGNy1rmlch5Gjjisw9E+uD3\r\n+ZlQJHMRez8u5TFIKl98fUeEGbIzaiyH9vQ=\r\n=5ez+\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"cogarvey","email":"colleenellengarvey@gmail.com"},"maintainers":[{"name":"cogarvey","email":"colleenellengarvey@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1654555022542_0.6779627421029193"},"_hasShrinkwrap":false}},"time":{"created":"2022-06-06T22:37:02.487Z","1.0.0":"2022-06-06T22:37:02.731Z","modified":"2022-06-06T22:37:02.851Z"},"maintainers":[{"name":"cogarvey","email":"colleenellengarvey@gmail.com"}],"description":"a modular collection of functions that operate on data, namely Arrays and Objects","homepage":"https://github.com/cogarvey/lotide#readme","repository":{"type":"git","url":"git+https://github.com/cogarvey/lotide.git"},"author":{"name":"Colleen Garvey"},"bugs":{"url":"https://github.com/cogarvey/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 @cogarvey/lotide`\n\n**Require it:**\n\n`const _ = require('@cogarvey/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 the tail of an array: everything except for the first item (head) of the provided array\n* `eqArrays`: takes in 2 arrays and returns true or false based on a perfect match\n* `middle` : will take in an array and return the middle-most element(s) of the given array\n* `assertEqual` : uses template literals when generating the output string\n* `assertArraysEqual` : takes in two arras and console.logs an appropriate message to the console\n* `assertObjectEqual` : takes in two objects and console.logs an appropriate message to the console\n* `countLetters` : takes a sentence (string) and returns a count of each of the letters in the sentence\n* `countOnly` : takes in an array and an obkect and will return an object containing counts of everything tjat tje input object listed\n* `eqObjects` : takes in two obejcts and returns true or false based on a perfect match\n* `findKey` : takes in an oject and a callback, it scans the object and returns the first key for which the callback returns a truthy value, is no key then it returns undefined\n* `findKeyByValue` : takes in an object and a value, it scans the object and returns the first key which contains the given value, if no key it returns undefined\n* `letterPositions` : returns all the indices (zero-based positions) in the string where each character is found\n* `map` : takes in an array and a callback function, returns a new array based on the results of the callback function\n* `takeUntil` : takes in an array and a callback, returns a slice of the array with elements taken from the beginning until the callback returns a truthy\n* `without` : returns a subset of a given array removing the unwanted elements","readmeFilename":"README.md"}