{"_id":"@angelblacite/lotide","_rev":"1-69f07fa4b315b3169952dae5a952e047","name":"@angelblacite/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@angelblacite/lotide","version":"1.0.0","description":"LHL lotide mini library","main":"assertArrayEqual.js","directories":{"test":"test"},"scripts":{"test":"./node_modules/mocha/bin/mocha"},"repository":{"type":"git","url":"git+https://github.com/blacitea/lotide.git"},"author":{"name":"Angel","email":"blaciteaLHL@gmail.com","url":"https://github.com/blacitea"},"license":"ISC","bugs":{"url":"https://github.com/blacitea/lotide/issues"},"homepage":"https://github.com/blacitea/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.0.1"},"gitHead":"12352bcaa111bc360249bcc6ad847ef7515dfb2c","_id":"@angelblacite/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-hINxNdj8rguDQ8sr8nHkuQ7rTeARsI3LbQ1oRp6xAX0GKrEMNWjjf0OooNFCaod5hRISXv5aAT6vWu4+mTW6gA==","shasum":"0c8fc4271103d56b1fe463e4c1baa8d248cb7bf4","tarball":"https://registry.npmjs.org/@angelblacite/lotide/-/lotide-1.0.0.tgz","fileCount":28,"unpackedSize":25514,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfH281CRA9TVsSAnZWagAAtvIP/jnXfg0BKjNy1p2ESCAV\nbwxqHCUH4bbO/Fzs3BojuACCQBfVgDToGzUbBIULF02TGehYlny9yLaGGmGL\no8TZIaAUC9AaTKa8KDqt6aIXF4CTXR3Y+bzY2g3+mQM2zEc5LZCa6T4C0KI1\ntnGGXhQ137CivNkK8HfQM+N/DcKn65IhU2MfefHJWVm0NyesZ0bFxrWj4a7P\nmU9sPzGyk1RLV+cgqHFcVgFTLad+OJZos4tQfYz5lN4KYDTsg+RREdrZ1fus\nTD+30lctuKoHRIhymW/a/u40hfi/AWeJXPusxUwyDyep/NyivY1Munvlr4XD\nu5qjRFkotoGHc2vNc7hLytWGLyUPIMjIS5mquc9mOFrg4bYYZuxUhIE1yme2\nwDPK4S7UFe6ZxuSA5bAAmYAKXUzWt0RyymSAYiZCawOAPUMZ6x1VTZEX8cnO\niRGaIhmqLEuHA6didJ/4HGqNkomkFkY4LHR6PSCNsPOgz3OOwji/z4wQ2MYV\ny/9sRGd0rQZHkoniQFnH133knwFrICAVFmPG0cG4WWJMtQ2v5z3z0cIyaj46\n9jSNnMEMf8Cjilr9InZ7HuWXnlfiWyqcVAUsDobtwrVXGY9xBh0rxrL8VnfB\nBsFCduM2DIvOHMSL36k9qF91S1W1mqBIN0sECN6mpBnw2Z+oGg4YMWpP3XOo\n+WZb\r\n=hdqT\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFXUrezLMXOt4erKtIKWD74+M8tR0gDP20BtrF7fKi/kAiEA1eZ+UQ7vKCT4SC1aWi2NVacsfxxmBXp8thSLr8Aygew="}]},"maintainers":[{"name":"angelblacite","email":"blaciteaLHL@gmail.com"}],"_npmUser":{"name":"angelblacite","email":"blaciteaLHL@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1595895605073_0.9802667882223024"},"_hasShrinkwrap":false}},"time":{"created":"2020-07-28T00:20:05.029Z","1.0.0":"2020-07-28T00:20:05.250Z","modified":"2022-04-04T14:05:43.543Z"},"maintainers":[{"name":"angelblacite","email":"blaciteaLHL@gmail.com"}],"description":"LHL lotide mini library","homepage":"https://github.com/blacitea/lotide#readme","repository":{"type":"git","url":"git+https://github.com/blacitea/lotide.git"},"author":{"name":"Angel","email":"blaciteaLHL@gmail.com","url":"https://github.com/blacitea"},"bugs":{"url":"https://github.com/blacitea/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 @angelblacite/lotide`\n\n**Require it:**\n\n`const _ = require('@angelblacite/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)`: return the first element (index[0]) of the input array\n* `_.tail(arr)`: return a copy of input array with the first element (index[0]) removed\n* `_.middle(arr)`: return an array containing the middle element(s) of input array\n* `_.assertArraysEqual(...)`: assert if two arrays are equal \n* `_.assertEqual(...)`: assert if two elements are equal  \n* `_.countLetters(...)`: count what letter presence and no. of occurence \n* `_.countOnly(arr, obj)`: count occurence in array as specificed in obj\n* `_.eqArrays(arr1, arr2)`: eval if two arrays are equal  \n* `_.eqObjects(obj1, obj2)`: eval if two objects are equal \n* `_.findKey(obj, callback)`: when callback return true, return key \n* `_.findKeyByValue(obj, val)`: return the key of key/val pair from an object\n* `_.flatten(arr)`: return a flat array by flattening the input nested array\n* `_.letterPositions(string)`: return an object with each diff letter as key, and the index of where it appears\n* `_.map(arr, callback)` return an array with each element from input array processed by the callback\n* `_.takeUntil(arr, callback)`: return a copy of input array with every element until callback function return true\n* `_.without(arr, exceptionEle)`: return a copy of input array with exceptionEle removed","readmeFilename":"README.md"}