{"_id":"@antosha-85/lotide","_rev":"1-aa384248a130f6b1885525a9c9de8abc","name":"@antosha-85/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@antosha-85/lotide","version":"1.0.0","description":"lotide project with functions","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/antosha-85/lotide.git"},"author":{"name":"Anton Smirnov"},"license":"ISC","bugs":{"url":"https://github.com/antosha-85/lotide/issues"},"homepage":"https://github.com/antosha-85/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^7.0.0"},"gitHead":"cb6f3bb516aef97850c1d4515641303292337e59","_id":"@antosha-85/lotide@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"antosha-85","email":"antosha-85@yandex.ru"},"dist":{"integrity":"sha512-JI+sdNWTaET6qIsJ8T0NaekYFSypJIHPJhG2LtduU8Wa9mfahb2WVM5O7jI0FmUTJytil+Ia00QJMzfB75GYNA==","shasum":"8471d1cd7d7bfd141f07c62fc90a04d25dfeb9dc","tarball":"https://registry.npmjs.org/@antosha-85/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":19758,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHTI+CRA9TVsSAnZWagAARqAP/3B7kcP/MyLeYUO2NJrY\n4+5WK+MTslpK+ZgNOv3w9f7H0H+z5UE02FFWHQjjWXUZq/mG0qQSfS9/pch5\nKKqFCXms5Ahv51Qr1OYQxQhl2lpQiO1Bodpr7EN/fCaeVsyAjgw5W+fWyGnR\nigxV/2XlIS47cOnuxA2ZUnZa7IZMQ7XXAa7B5n1Nwyub/RPfmDbpfYW1wzKa\nMCN0RnfhGhuVXpD+ae5hGuL/vl/GgtpIWOl+VnjMCY5GYTrIElbw3f71NWn0\ncNu+fj2KE4LnC7Fhvp6OyBSEDejpQD69ZfTGmNAfgWuybV/huOUc6U09pknZ\ndV3QfgS8NbfR3pWV+xvhFL9FRuAWp7f3MUnV/4vFBa8dIHohsX5Iw/GoyTGJ\n5UOkqeQHD11GKQ6UQasKBTcXzWnuhkWl10AkBVQHj7p5vNLLpsUAlv1+ACsp\nNwoIbg6PtYoadJWh3TVnMCJmIjo0V2jm9Nwnwc29ejeMPc4lctRr1YWVBP7W\noPuRbfJsjRjq8jH7mflNais/DlPSw+dxPGWIiKQG2eCIK3tAkn/hY0FeaHE2\ntFojnw7NmxHgOLvpfM2gy+lstMAcs1ypUnCc/fVmUWN7bmem9V1mC3SPAy75\n9mLj7TpBFaNoeEkOPYJBqtdnpHhCwcm2OwBK5ipw8dePXKRayMBL/wpHIk+Z\n/lOC\r\n=U4Qj\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCJtswy4fzRelKtKb5f+eYE9DAFKZguNgedNlN6Xkdc2gIhAIokvGWngaL5QbA4K5SSy8Ukc6Px0+JvgpNeHL7teAxI"}]},"maintainers":[{"name":"antosha-85","email":"antosha-85@yandex.ru"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1578971710270_0.3640080402569732"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-14T03:15:10.237Z","1.0.0":"2020-01-14T03:15:10.474Z","modified":"2022-04-04T14:23:41.454Z"},"maintainers":[{"name":"antosha-85","email":"antosha-85@yandex.ru"}],"description":"lotide project with functions","homepage":"https://github.com/antosha-85/lotide#readme","repository":{"type":"git","url":"git+https://github.com/antosha-85/lotide.git"},"author":{"name":"Anton Smirnov"},"bugs":{"url":"https://github.com/antosha-85/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 @antosha-85/lotide`\n\n**Require it:**\n\n`const _ = require('@antosha-85/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* `function1(head)`: returns the first item in the array\n* `function2(tail)`: returns the \"tail\" of an array: everything except for the first item (head) of the provided array\n* `function3(middle)`: will take in an array and return the middle-most element(s) of the given array.\n* `function4(assertEqual)`: description\n* `function5(assertObjectEqual)`: Implement assertObjectsEqual which will take in two objects and console.log an appropriate message to the console\n* `function6(countLetters)`: The function should take in a sentence (as a string) and then return a count of each of the letters in that sentence\n* `function7(countOnly)`:  will return an object containing counts of everything that the input object listed.\n* `function8(eqArrays)`: compares two arrays for a perfect match\n* `function9(eqObjects)`:  will take in two objects and returns true or false, based on a perfect match.\n* `function10(findKey)`: takes in an object and a callback. It should scan 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* `function11(findKeyByValue)`: which takes in an object and a value. It should scan the object and return the first key which contains the given value. If no key with that given value is found, then it should return undefined\n* `function12(flatten)`: will take in an array of arrays and return a \"flattened\" version of the array.\n* `function13(letterPositions)`: new function letterPositions which will return all the indices (zero-based positions) in the string where each character is found\n* `function14(map)`: The map function will return a new array based on the results of the callback function\n* `function15(takeUntil)`: The function will return a \"slice of the array with elements taken from the beginning.\" It should keep going until the callback/predicate returns a truthy value\n* `function16(without)`: will return a subset of a given array, removing unwanted elements\n* `function17(assertArrayEqual)`: assertion function will make use of your eqArrays function for array comparison.\n","readmeFilename":"README.md"}