{"_id":"@anitat/lotide","_rev":"1-1ed634c57092f91a46158e839bf601f0","name":"@anitat/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anitat/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/zorromark/lotide.git"},"author":{"name":"Anita Toth"},"license":"ISC","bugs":{"url":"https://github.com/zorromark/lotide/issues"},"homepage":"https://github.com/zorromark/lotide#readme","devDependencies":{"chai":"^4.3.0","mocha":"^8.2.1"},"gitHead":"bfb98b079b773b4ea3574428b3d610a9aeefb417","_id":"@anitat/lotide@1.0.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-1uGKBjCNXYgwNrkkEzhprIjgo0uzYUe6RqmGRPUJIxl3N2tdLSdaxvHCXFbEl3oQYjEpsZDrE95FUbCzd1FVSg==","shasum":"8596472e0f7a2976382c07a5af571f433a6ce147","tarball":"https://registry.npmjs.org/@anitat/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":20557,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgIc1kCRA9TVsSAnZWagAAFhoQAJqWDEYfNvkCqzV+NGw0\nVql2R11ELys85uKdRQqBkkDRk4yPiIsLFkGOH63vYWlb77ZWs2YHUPxaTlEI\nrWyA+BNgvzuOOmGOA+w6whOeft0/PLBEf4MklU9lhhO9c9x7BNxl1dv+ytqt\n62cBcnrbBdxfSuRhQNcyKjxBaQXVYggrkzzP+70ANdO3GL5HnbYsc7tEm1cl\nSrmdGeH8zlkDPLbrWSFeVVs3NcNvqHjKQAO8vGPh6P6cQlkdud5jhATJSfYD\nW8daY3U8eMVZKe5WMqpiPQxdbTX/aBU7Chcm4+b6v/MZGNHVBI2D3fb75pC0\nm1DxckDQhHOKSDmisjD3vidlt9/FOtBMQRh1M3i0NOHqO/ruQHyOFJNMPS6d\nGH4s+mc8Suwj7o4Zc2LBu3xfmQqZwx5KEwwNMPAUkQFBkH29SylmrigsDouK\njXg/AJ7rplTddkrYIL1IhyEMNwKHTaKGgtK57CiLCthGghTEy9jBrLrbgG6P\nHgQyq+VKT2n6XOi9cmed29mUePN5YNs3IKqzIR39fQ7iG5mMSn7N2OFmYIvU\nNixMFvezjk/UNwtbcr7AWE7ANN8hZlxRUscOY1+uifwvrN/+OLMyo5wv1Jai\n+rojD07raVl3D0PFuh5tCFGzaXJwEbci2EHSCqe6t067uwS07GwzEsM0+q5m\nhkNm\r\n=zl1/\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGivCV+Vem4QOk7LWT49BmB+j8As3RU6EEl5NmU4GXHzAiEAgFe9h1Zy1R0ULEPZP/PldJME5p1f840ZR5elgY9Kj/M="}]},"_npmUser":{"name":"anitat","email":"haluska99@hotmail.com"},"maintainers":[{"name":"anitat","email":"haluska99@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1612828003881_0.9646566556050926"},"_hasShrinkwrap":false}},"time":{"created":"2021-02-08T23:46:43.850Z","1.0.0":"2021-02-08T23:46:44.024Z","modified":"2022-04-04T14:12:45.563Z"},"maintainers":[{"name":"anitat","email":"haluska99@hotmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/zorromark/lotide#readme","repository":{"type":"git","url":"git+https://github.com/zorromark/lotide.git"},"author":{"name":"Anita Toth"},"bugs":{"url":"https://github.com/zorromark/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 @anitat/lotide`\n\n**Require it:**\n\n`const _ = require('@anitat/lotide');`\n\n**Call it:**\n\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\n`const results = _.head([1, 2, 3]) // => [1]`\n`const results = _.middle([1, 2, 3]) // => [2]`\n`const results = _.assertArraysEqual([1, 2, 3], [1, 2, 3]) // => true`\n`const results = _.assertEqual(\"Lighthouse Labs\", \"Bootcamp\") // => false`\n`const results = _.eqObjects(cd, dc) // => true`\n`const results = _.assertObjectsEqual(eqObjects(cd, dc) // => true`\n`const results = _.countLetters(\"hello\") // => 5`\n`const results = _.countOnly(firstNames, { \"Jason\": true, \"Karima\": true, \"Fang\": true, \"Agouhanna\": false } // => based on object declared`\n`const results = _.eqArrays([1, 2, 3], [1, 2, 3]) // => true`\n`const results = _.findKey({ \"noma\":      { stars: 2 },}, x => x.stars === 2) // => noma`\n`const results = _.findKeyByValue(bestTVShowsByGenre, \"The Wire\") // => drama`\n`const results = _.map([\"hi\", \"bye\", \"hello\"], word => word[2]) // => [\"h\", \"b\", \"h\"]`\n`const results = _.takeUntil([\"hi\", \"bye\", \"hello\"], word => word === 'bye') // => [\"hi\"]`\n`const results = _.without([\"1\", \"2\", \"3\"], [1, 2, \"3\"]); // => [\"1\", \"2\"]`\n`const results = _.without([\"1\", \"2\", \"3\"], [1, 2, \"3\"]); // => [\"1\", \"2\"]`\n`const results = _.letterPositions(\"hello\").e // => [1]`\n\n\n\n## Documentation\n\nThe following functions are currently implemented:\n\n\n\n* head() :              return first element in array\n* tail() :              returns all elements except first one in array\n* middle():             returns middle element(s) in array\n* assertArraysEqual():  asserts and checks two arrays are equal\n* assertEqual():        asserts two things are stricly equal\n* assertObjectsEqual(): asserts and checks two objects are equal\n* countLetters():       counts how many letters in string\n* countOnly():          count how many times a certain element appears in array\n* eqArrays():           checks if two arrays are equal\n* eqObjects():          checks if two objects are equal\n* findKey():            returns the key based on the given callback function\n* findKeyByValue():     given a value it will return the attached key\n* letterPositions():    returns the position of a letter given\n* map():                creates a new array with the results of calling a provided function on every element in the calling array\n* takeUntil():          returns a new array taken up until a specification\n* without():            removes a specified element and returns new array","readmeFilename":"README.md"}