{"_id":"@brianguyen97/lotide","name":"@brianguyen97/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.1":{"name":"@brianguyen97/lotide","description":"Mini clone of Lodash, used for learning purposes.","version":"1.0.1","repository":{"type":"git","url":"git+https://github.com/brianguyen97/LOTIDE.git"},"keywords":[],"author":{"name":"Brian Nguyen"},"license":"ISC","bugs":{"url":"https://github.com/brianguyen97/LOTIDE/issues"},"devDependencies":{"chai":"^4.3.6","mocha":"^9.2.2"},"scripts":{"test":"mocha"},"gitHead":"9eb81446050926098a8ae8ebffdecadb517efa93","homepage":"https://github.com/brianguyen97/LOTIDE#readme","_id":"@brianguyen97/lotide@1.0.1","_nodeVersion":"16.14.0","_npmVersion":"8.3.1","dist":{"integrity":"sha512-o+gmdHZGDPaPvssTcXl4aEnaKwF1fV5lUkIQ5kcB9s7tjCLva6a68PLPUIMrhIHnQ/Ih0xC0LhDxPONpND19GA==","shasum":"83b5a5e48a966865481e0a4f75827bdced533bf2","tarball":"https://registry.npmjs.org/@brianguyen97/lotide/-/lotide-1.0.1.tgz","fileCount":36,"unpackedSize":19058,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICc07ndeoEzPu03kTOqgJ2bfWqKIfYox/tWU4G9pfEgWAiAC0wmBTfy0v+4Vd3mNro1pF4FiXPF4W7FZEGWBJ8HTaQ=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiWQ3pACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmoWvw//cwStFB8dtc2KmiCce2b+dEVkYfWCABgLfIskAOXORqVraCrV\r\nmRoaMvtBtO/ZF/plFGDYEnOqG+ClQh9Yz5RbtwGzWLPTJEJzgucohqiJdmW1\r\n+EnCtxRvscfMRenN0cBRxJBPHVe1WAwlCm57NPFJACcXs8T+nU+wBXIRKZTk\r\nMR4ewo24DwN2BglG28J5slHCl9pOD0olo5EOia0glZ6Vf5V7jOrRqbDJOQZ1\r\nhA4LipB1UisSaWDFFBrY1GwCwO96HEDcJI52qqDTL4BtdCCUvdJA/V2x4TkM\r\nOY8kLzUJ5VCW8YNy+ciBLNirMXRisk+OUiFrPIKWVELOj6RZQfkzDZtlzjmQ\r\nZ268nCjSRqj/vAKIGd37jYsF/5eskvscVMqcKcLxUif1Axmnv6bUowXBNi4E\r\nrHfEeo5hRyUFx5/h2dCdHr25OWzPNVouAUxBE8evR5/uYeZlvUk0yqt0su3j\r\nsvOpIwVhPSqeNKfDMK2pHxzor/SqKhuk0cykNC5YjriIVTqdx/v6xuc2lUOO\r\n5lE5P/pn5LW28ZLIGjqlmmAx6vE/deOMvGR/2rLohoyA6nXgSIYPxnn+vAqo\r\nm8f3kZwtEGcnt3DGwqTasEa6K4zMQHEGrQaAPhM5/QdGurdVVdbTooQVi7FB\r\nb8mXppXZkNz970g4aMbMjNmOugHBA0Rw1w4=\r\n=2rpp\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"brianguyen97","email":"brian.nguyen97@icloud.com"},"directories":{},"maintainers":[{"name":"brianguyen97","email":"brian.nguyen97@icloud.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1650003433551_0.7060426500229928"},"_hasShrinkwrap":false}},"time":{"created":"2022-04-15T06:17:13.486Z","1.0.1":"2022-04-15T06:17:13.739Z","modified":"2022-04-15T06:17:13.869Z"},"maintainers":[{"name":"brianguyen97","email":"brian.nguyen97@icloud.com"}],"description":"Mini clone of Lodash, used for learning purposes.","homepage":"https://github.com/brianguyen97/LOTIDE#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/brianguyen97/LOTIDE.git"},"author":{"name":"Brian Nguyen"},"bugs":{"url":"https://github.com/brianguyen97/LOTIDE/issues"},"license":"ISC","readme":"# Lotide\r\n\r\nA mini clone of the [Lodash](https://lodash.com) library.\r\n\r\n## Purpose\r\n\r\n**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for use in production-grade software.**\r\n\r\nThis project was created and published by me as part of my learnings at Lighthouse Labs.\r\n\r\n## Usage\r\n\r\n**Install it:**\r\n\r\n`npm install @brianguyen97/LOTIDE`\r\n\r\n**Require it:**\r\n\r\n`const _ = require('@brianguyen97/LOTIDE');`\r\n\r\n**Call it:**\r\n\r\n`const results = _.tail([1, 2, 3]) // => [2, 3]`\r\n\r\n## Documentation\r\n\r\nThe following functions are currently implemented:\r\n\r\n- `function1(countLetters)`: Pass in a string, returns an object showing how many times each letter appears in the string\r\n\r\n- `function2(countOnly)`: countOnly will be given an array and an object. It will return an object containing counts of everything that the input object listed.\r\n\r\n- `function3(findKey)`: Takes in an object and a callback. It scans the object and returns the first key for which the callback returns a truthy value. If no key is found, undefined is returned\r\n\r\n- `function4(findKeyByValue)`: Takes in an object and a value. It scans the object and returns the first key which contains the given value. If no key with that given value is found, then it should return undefined.\r\n\r\n- `function5(flatten)`: Flatten takes in an array containing elements including nested arrays of elements, and returns a \"flattened\" version, removed the nested arrays.\r\n\r\n- `function6(head)`: Takes in an array and returns the first element\r\n\r\n- `function7(letterPositions)`: Returns all the indicies in the string where each character is found as an object\r\n\r\n- `function8(map)`: Own version of map, iterates over an array, do something to it, and return a new array.\r\n\r\n- `function9(middle)`: Returns the most middle element of an array, one element if there is an odd amount, two if it's even. Minimum of 3 elements\r\n\r\n- `function10(tail)`: Takes in an array, returns a new array with everything besides the first element, the \"tail\".\r\n\r\n- `function11(takeUntil)`: Takes in an array and a callback, the function will return a slice of the array, starting from element 0, and it'll keep going until the callback returns a truthy value.\r\n\r\n- `function12(without)`: Takes in 2 arrays, and return everything from the first array, excluding the elements in the second array.\r\n\r\n- `function13(assertArraysEqual)`: Takes in 2 arrays, compare them to see if they're equal.\r\n\r\n- `function14(assertEqual)`: Compares 2 values to see if they're equal\r\n\r\n- `function15(assertObjectsEqual)`: Compares 2 objects to see if they're equal.\r\n\r\n- `function16(eqArrays)`: Compares 2 arrays to see if they're equal.\r\n\r\n- `function17(eqObjects)`: Compares 2 objects to see if they're equal. Returns true or false.\r\n","readmeFilename":"README.md"}