{"_id":"@dominiquemasena/lotide","_rev":"1-e953ff5b00d023020e44ad27b6ae1261","name":"@dominiquemasena/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@dominiquemasena/lotide","version":"1.0.0","description":"Lotide Submission - Dominique Masena","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/dominiquemasena/lotide.git"},"author":{"name":"Dominique Masena"},"license":"ISC","bugs":{"url":"https://github.com/dominiquemasena/lotide/issues"},"homepage":"https://github.com/dominiquemasena/lotide#readme","gitHead":"1b47d2a47c2802681fe3169d9fadd6a67ec17261","_id":"@dominiquemasena/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-BpGZ6qi2/4faEZL7FkgnFVHuQr4bBVdG7+maMD81gSDHamhTSaFyKHQGnzCSBJms+vqosWc9moT4FfnsH6kK1A==","shasum":"e89e595d49dc575a5c7ec7c332190209e7e4c908","tarball":"https://registry.npmjs.org/@dominiquemasena/lotide/-/lotide-1.0.0.tgz","fileCount":28,"unpackedSize":19759,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH3kYCRA9TVsSAnZWagAAyUgP/3RwCYxT7XSwd4lxu1eW\n5P7LZb0Z6ZtHDdnfsFwElCL1RZhELXQtvpfSATE5DoPvIaSU64OHaV3EGK/E\n3G3JOptelENk4GgvpP0D3JQ3oPEI1TwL76+26G/FTVtNYhegbaFL+HXGppvC\n57gokENwzSc+Y1PypcoWpx1WoT1PdFht+EYtxN7JsMYyYLgGlXvT0bJFZBfl\ni8NQKwb0Y+wmsJppi/5b8JBP1M2f8UEdPvhpovrHQmObfCVwF4FGDNLFRDtp\n+FTGwI0Z9/S8wTx7JUWyHnoLnoJ9cffPjXYScjIaArZLztqo2Bp+tA4rlPGO\npZuNGzmyReYKSf+KkYR1tBlEY3Z9IEXF/yS2eUCGwA8Uo2+aMS8MFKYPM3k3\nVugyPh9gGeXetgvzUPdMehk9nYoIryaT/w0O1hf69ziHUTUnx7n5jJj9Pd0m\n39DjPR25HMzgZfOQVrXe5pDa/fGk6o+QAL61P+UsqY915ZHzbsUZnKMkZIDh\nacmzamvNrc5BJsTGgf9vbUtUWzKdoMzxsA6froslFlvmsg0J+YPLoB6WdLLv\nKfulEo81JpFDOiziajiq0EtmF94V7ZjHLz6aaf/q/9wvJS3hoDr6XryDQDXE\nMPzqc6hAdjawxVxjrX6CC1Y00LYZlDhZ3fUkFKn7mn7rrkK5zVXgTfbmmPJk\nlhf4\r\n=MgD0\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD8J2ZApVbX/nOdct36m0onqfj9DsbbtnvXewBncmatbgIhANh/63lJH2savAGn5nbpBs8LUALJ54ueILqj9gx2+ilU"}]},"maintainers":[{"name":"dominiquemasena","email":"dominique.masena@live.ca"}],"_npmUser":{"name":"dominiquemasena","email":"dominique.masena@live.ca"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1595898135925_0.007102498951933933"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-28T01:02:15.881Z","1.0.0":"2020-07-28T01:02:16.019Z","modified":"2022-04-05T05:14:10.253Z"},"maintainers":[{"name":"dominiquemasena","email":"dominique.masena@live.ca"}],"description":"Lotide Submission - Dominique Masena","homepage":"https://github.com/dominiquemasena/lotide#readme","repository":{"type":"git","url":"git+https://github.com/dominiquemasena/lotide.git"},"author":{"name":"Dominique Masena"},"bugs":{"url":"https://github.com/dominiquemasena/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 @dominiquemasena/lotide`\n\n**Require it:**\n\n`const _ = require('@dominiquemasena /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* `tail(arr)`: function where the result is tail end of an array. All items in array expect first item.\n* `head(arr)`: function where the result is head of an array. The first item in an array.\n* `middle(arr)`: function where the result is item in the middles of an array.\n* `tail(arr)`: function where there result is tail end of an array. All items in array expect first item.\n* `countOnly(allItems, itemsToCount)`: function where the occurence of a given item is counted in an array.\n* `assertArraysEqual(arr1, arr2)`: function where the two arrays are compared to assert if they're equal or not.\n* `assertEqual(actual, expected)`: function where the actual and expected outcomes are compared to assert if they're equal or not.\n* `takeUntil(array, callback) `: function where items in an array are pushed into another array until it reaches a given item.\n* `eqArrays(arr1, arr2)`: function where the actual and expected outcomes of two arrays are compared.\n* `findKey(object, callback)`: function where the result is the first key in an object that returns a truthy value.\n* `assertObjectsEqual(actual, expected)`: function where the two objects are compared to assert if they're equal or not.\n* `eqObjects(object1, object2)`: function where the actual and expected outcomes of two objects are compared.\n* `letterPositions(sentence)`: function where the position of a given letter in a sentence is given.\n* `countLetters(string)`: function where the number of letters in a string are counted.\n* `without(arr1, arr2)`: function where the resulting array is an array without the items in another.\n* `map(array, callback)`: function where an array is transformed through a callback.\n* `findKeyByValue(shows, genre)`: function where the result is a key in an object corresponding to a given value.","readmeFilename":"README.md"}