{"_id":"@alicemathews/lotide","_rev":"1-4e878a646198b9ab53bceabdad76f28a","name":"@alicemathews/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@alicemathews/lotide","version":"1.0.0","description":"A clone of the lodash library","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/AliceMathews/lotide.git"},"keywords":[],"author":{"name":"Alice Mathews"},"license":"ISC","bugs":{"url":"https://github.com/AliceMathews/lotide/issues"},"homepage":"https://github.com/AliceMathews/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^6.2.2"},"gitHead":"ab3fa553c0e3a0553eaaadd413fb0afbca83da0b","_id":"@alicemathews/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.11.3","dist":{"integrity":"sha512-zc9LpmYOqdJrFRVE1Qdw0k0221sC56BuSJN0SXmsBHVw9pFCmgEEUb+lKm3XLwYFs3yIWsF6GcnrAgeSmqhsKg==","shasum":"c90be4b3a27ac481055135823373642aa5275ae5","tarball":"https://registry.npmjs.org/@alicemathews/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":24621,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJd5a1JCRA9TVsSAnZWagAADV8QAInnTSAKwuyZlqiRdrHL\nEb7H1+iL6pp3qnZt6fscQroThmqkMjK6AAGibqUXjeVUa3eJ14nxzt0onvHl\nO/c0nlsPLR3Yby8+X/HPPjhThxOhlJi+gSayrfUTYM3tM4lD/QuqKhxM5fEb\nZbbWUqJJlo+JXJL+Vw8blzAtBXJT4fbCvx70zhyIdry3jforiwoaGHJhTSe2\ntfpcdoeGe8p3/6o9ZytyfuK34xiCkpkipkrC1qIX8SOAxiwAVlP6O8mg0Vt9\n2u/Cwea9sX1lM73owWykgZs3gwVv3hAm4TbPUWJmLQVmdFXBbL3f3NouySyv\n3K8DCgqNAf78amDq1zsdV/juoUju0UuMz4gfBCowcRFX+xV57PaewRm3FPqP\n9sK4vxkgcaFIlhncmyKqzbd1Tddy6qgWus1aoj5O4tIRGfK4yCIm9bTgd7zT\n8OhlSr6+roqE6955Zg9r5f+Dp2SwdFqJwMqbUoWplghVW3GgM80LUB7i7I/M\nCF+oEAFq3W5QyoEdusUdLExsY3blsumx7snJvqfwU9VxfsoS65RZv7TnlXsS\nIii315W/YTHubRBhalWBaLncBWYsNpCh5btdsnXvwo6q0CcxhngV3+Dd8XAc\nlHLlA1bMCZ2Fvs38sCMZNcUoB1gIbUt340VOtgo5jw6ZhG+EaafYl8eJnFLD\nQsFN\r\n=z6bP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFC0DK1jBPMBpzXLnzDCsWDmAXUBK+m6J2BbJSXKEq9MAiEAmJi4krwZkSGHgdMeZF9Bmlvl/RcEPqsNQ1vwvz9XGp8="}]},"maintainers":[{"name":"alicemathews","email":"alice_mathews@hotmail.co.uk"}],"_npmUser":{"name":"alicemathews","email":"alice_mathews@hotmail.co.uk"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1575333192849_0.23064440926360796"},"_hasShrinkwrap":false}},"time":{"created":"2019-12-03T00:33:12.806Z","1.0.0":"2019-12-03T00:33:12.947Z","modified":"2022-04-04T12:54:16.180Z"},"maintainers":[{"name":"alicemathews","email":"alice_mathews@hotmail.co.uk"}],"description":"A clone of the lodash library","homepage":"https://github.com/AliceMathews/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/AliceMathews/lotide.git"},"author":{"name":"Alice Mathews"},"bugs":{"url":"https://github.com/AliceMathews/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 @alicemathews/lotide`\n\n**Require it:**\n\n`const _ = require('@alicemathews/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 head of the array (the first element)\n* `tail(arr)`: returns and array containing the tail of the input array (every element apart from the head)\n* `middle(arr)`: returns an array containing the middle elements of the input array\n* `countLetters(str)`: returns an object with keys as the characters and values as how many times they occur, does not include spaces\n* `countOnly(arr, obj)`: recieves an array of items and an object defining items to count. Returns an object with keys as the original array items and values of the number of times they occur.\n* `eqArrays(arr, arr)`: recieves 2 arrays and returns true if they are equal and false if they are not\n* `eqObjects(obj, obj)`: recieves 2 objects and returns true if they are equal and false if they are not\n* `findKey(obj, func)`: recieves an object and evaluator function and returns the first key that evaluates to true\n* `findKeyByValue(obj, value)`: returns the key that corresponds to the input value in the object\n* `flatten(arr)`: recieves a nested array and returns the flattened array\n* `letterPositions(str)`: takes a string and returns an object with each character as a key and its values as an array containing each index it exits in\n* `map(arr, function)`: takes in an array and a function to perform on each element, returns the new array\n* `takeUntil(arr, func)`: takes in an array and evaluator function. loops through array and writes each element to a new array until function is true\n* `without(arr)`: takes in an array and an array of items to remove. only writes elements to new array if they are not included in the remove array. returns new array\n\n","readmeFilename":"README.md"}