{"_id":"@aedodge/lotide","_rev":"1-abbb2fb5da3263551a33f7b93c8e2037","name":"@aedodge/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aedodge/lotide","version":"1.0.0","description":"A mini clone of the [Lodash library](https://lodash.com/)","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Smesworld/Lotide.git"},"author":{"name":"Alan Dodge","email":"smesworld@hotmail.com"},"license":"ISC","bugs":{"url":"https://github.com/Smesworld/Lotide/issues"},"homepage":"https://github.com/Smesworld/Lotide#readme","dependencies":{"mocha":"^6.2.0"},"devDependencies":{"chai":"^4.2.0"},"gitHead":"126eeab62ba7484fb712a2b504b8c9037c812d12","_id":"@aedodge/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.11.3","dist":{"integrity":"sha512-ylYCy+Y1X+vDK3hL9NnHZN0Iu6/u7hN78cO/nrPzCKvBGFG2K4LeMDGlV3rKsUk8LpaRoOm4jdbyRf3t3VN41Q==","shasum":"8d3a69fa0f5ab84a1a8b42f2d0ae73702ac41233","tarball":"https://registry.npmjs.org/@aedodge/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":24138,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiTCwCRA9TVsSAnZWagAArOkP/2fKGA64EUCdkeeF57Io\nV7z5KNazhbJSckmFS8Y3BST0Vg/eKhOaEgCmsd9W8o7X9V9gk7vLHKknfgT5\nBGAvR2PQDSyhZfh849OynaScc7Kr5L56um/kWRL3Qw3BF3QJu8yhf5EEiZQY\nFP3GRzfGgpofTnP4zlXvmN22h8r1/Z2p0jq5Omw+8JT0gODbJI2Aebg2sqdo\n/XfdHA9Oo1top6QIAxQBsi3NagieHz258Qu+YzTPFQHtmI6P2Xhbdbu/iINd\n7AUtdFCj6rM4RtEurDELB2zRSxsWW7PA4JNunYGx3pP5POXE8Gr6+OQi1DC+\nbXFxTR7y2hnjTVEIHq0q+3MaHPQ2jn8qF9b81JLD81YLGvJHaVtIrYTS4BzQ\nByTC194zWPhm4uADmcTaYbw2uyZ0IGKqcXK0XrBXT5Io/LXYwiJeZcqCwXAi\nI5BuYC4ZA8rffwP8Yo36RKUfoImMS6nUTVyggKYiRDEbElSvXrLAyp5ZdTFj\nIq0XjnrXJRz0UxE2YB3XuPf608ZMvGFO0nkhyNt1nsyqFlEEbtaeA+tSlKtB\nkJwT6viwTXtu8C9DXC/NdZ1bHhswyUP/YgpcG+5n4NRYG0xfkAKQVNlr+UrE\ng5FoE/RRk7DuJ8fgElUuh1LFevbcoIv18boNloK0CoOyBSOxbGWz8przrWYG\nJKWo\r\n=Y81c\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFGdPQ3AC1eG6ZHqPs4/Vzv7B6y6Wf30Shdp9sei/j/CAiBd8s3uE8rJwdEB4wIPHvHnFqhN4pSVPnL3zMNKH6VWAw=="}]},"maintainers":[{"name":"aedodge","email":"smesworld@hotmail.com"}],"_npmUser":{"name":"aedodge","email":"smesworld@hotmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1569271983572_0.4469906886777286"},"_hasShrinkwrap":false}},"time":{"created":"2019-09-23T20:53:03.334Z","1.0.0":"2019-09-23T20:53:03.690Z","modified":"2022-04-04T11:47:07.244Z"},"maintainers":[{"name":"aedodge","email":"smesworld@hotmail.com"}],"description":"A mini clone of the [Lodash library](https://lodash.com/)","homepage":"https://github.com/Smesworld/Lotide#readme","repository":{"type":"git","url":"git+https://github.com/Smesworld/Lotide.git"},"author":{"name":"Alan Dodge","email":"smesworld@hotmail.com"},"bugs":{"url":"https://github.com/Smesworld/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 @aedodge/lotide`\n\n**Require it:**\n\n`const _ = require('@aedodge/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(...)`: description\n\n* `assertArraysEqual(array1, array2)`: Compairs two arrays and outputs a true or false message based on that comparison\n* `assertEqual(data1, data2)`: Compairs primative data-types and outputs a true or false message based on that comparison\n* `assertObjectsEqual(object1, object2)`: Compairs two objects and outputs a true or false message based on that comparison\n* `countLetters(string1)`: returns an object with letters as keys from the string and values of letter counts\n* `countOnly(array, object)`: returns an object with primatives as keys from the object and values counting those primatives in the array\n* `eqArrays(array1, array2)`: returns true or false based on the comparison of the arrays\n* `eqObjects(object1, object2)`: Returns true or false based on the comparison of the two objects\n* `findKey(object, function)`: Returns the key of an object found by the callback function\n* `findKeyByValue(object, value)`: Returns the key in the object which coresponds to the value\n* `flatten(array)`: Returns a single depth array when given a nested array\n* `head(array)`: returns the value of the first location in the array\n* `letterPositions(string)`: returns an object with letters as keys and values as an array of locations\n* `map(array, function)`: returns a new array after applying the function to each element of the input array\n* `middle(array)`: returns sub-array coresponding to the middle of input array\n* `tail(array)`: returns new array without the first value of input array\n* `takeUntil(array, function)`: returns sub-array of input array until function evaluates true\n* `without(array1, array2)`: returns sub-array of array1 with any elements of array2 removed\n","readmeFilename":"README.md"}