{"_id":"@brycemclachlan/lotide","_rev":"1-8d7379abb99ebce880d6960ad10beb2f","name":"@brycemclachlan/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brycemclachlan/lotide","version":"1.0.0","description":"A mini clone of the Lodash library created for learning purposes.","main":"index.js","scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/brycemcl/lotide.git"},"author":{"name":"Bryce McLachlan"},"license":"UNLICENSED","devDependencies":{"chai":"^4.2.0","mocha":"^8.2.1"},"gitHead":"5203668e9311ef653b1acd946f7f141964c1df00","bugs":{"url":"https://github.com/brycemcl/lotide/issues"},"homepage":"https://github.com/brycemcl/lotide#readme","_id":"@brycemclachlan/lotide@1.0.0","_nodeVersion":"14.15.3","_npmVersion":"6.14.10","dist":{"integrity":"sha512-2okA4Ow4oyput1H8km7y4QtpfpWHAtrDT+ZSLev28vjlwv0/QEmbd2231aNmlknDU3eIGE9A72wBmSFXJl+s5w==","shasum":"83e6f0f7465deb4acb2e67aee08cbcae3d1e078c","tarball":"https://registry.npmjs.org/@brycemclachlan/lotide/-/lotide-1.0.0.tgz","fileCount":43,"unpackedSize":22641,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJf/PqvCRA9TVsSAnZWagAAT8YP/iiDi6EuqPrATo1Uf/2q\n+Y23887wtbCPDR+g3716kMbRiiEcRy+5WHM6GArGQn8lXJZOofitsd4NKJus\n3cFvDvefYdphsrHm/aIzRX0yNcnOjwF+cWr6QbPcMjTbKMOwLkNT/UlD14Pd\nJD0ro/h7x0cp+i1CcQmY12Up/vF8KB4/AuH3ZPzXYUndR4/sy/rJQop8pDiy\n5ZLotIHB8E9fsfoBcD7m6E9NP6i1ijHTf+MQ7Kj9ZAoh1j1D8+Obm+C8VdYk\nnrg3r7OTakuw7qcN82LTLnrSaKV0/mHGOpY3qCIfaU8Z+GXBFNiEj+ESNG7J\npLUA6wToRAafDx4WUFn1JzFrrnvdmTIZE4IrhvXM6VXZB/RLNR3EFXOcZ9RL\naM9XQSXh61M1YQk8aNVeC0/U55r2LyX11iKRHBusDPsOhUQ4vBQ4IQW0T/2Y\n7GmCvtp9vqSnLNIR40Zyq3RI9wjgY5jbww9H+qOJu9HIE+SslIX3p0lDhByc\nCDageNJdjd2qBnk4moMSKX6FGmuBrQC4SAsgrRX09ak36E8t1Tn0xWyUoStM\nIjM9tCj47odPrmPJQdv1rezqkRZzu2vCuskXe6dIzYqL1/LBnIfVPbfmVkAk\nLhnqSLd1om+oRW4TJq5N9DJnZUdp2GAFY7xkE3A/fRUjpeK8+a5D7GiVqNT/\n/9iM\r\n=vEk4\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFE+KYj4A/KSAkDpKoOFdaiuf2HJNj5EQ7QN0Vky/+NpAiEA9EZtWiPeApEvtXCgJgBzXPVk5Rl6IRYvNEI4JZE8yjw="}]},"_npmUser":{"name":"brycemclachlan","email":"brycemclachlan@gmail.com"},"directories":{},"maintainers":[{"name":"brycemclachlan","email":"brycemclachlan@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1610414767321_0.09044755052241804"},"_hasShrinkwrap":false}},"time":{"created":"2021-01-12T01:26:07.260Z","1.0.0":"2021-01-12T01:26:07.484Z","modified":"2022-04-04T20:50:02.126Z"},"maintainers":[{"name":"brycemclachlan","email":"brycemclachlan@gmail.com"}],"description":"A mini clone of the Lodash library created for learning purposes.","homepage":"https://github.com/brycemcl/lotide#readme","repository":{"type":"git","url":"git+https://github.com/brycemcl/lotide.git"},"author":{"name":"Bryce McLachlan"},"bugs":{"url":"https://github.com/brycemcl/lotide/issues"},"license":"UNLICENSED","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 @brycemclachlan/lotide`\n\n**Require it:**\n\n`const _ = require('@brycemclachlan/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* `function tail`: \nTakes an array and return everything after the first element\n\n* `function pipe`: \nTakes any number and returns a composite functions where one functions returns into the next ones arguments.\n\n* `function countOnly`: \nTakes two arguments. The first one is an array of strings to look through. The second argument is what the function is looking for. It will return the amount of times the second argument appears in the first argument.\n\n* `function findKeyByValue`: \nTakes two arguments. The first is an object. The second argument is a number or string that is used to search though the values for each of the keys and returns the key when a match is found.\n\n* `function assertEqual`: \nChecks if two arguments are equal. Returns a boolean.\n\n* `function flatten`: \nTakes an array with nested arrays and returns an array that has been flattened.\n\n* `function flipFlatObject`: Takes an object and flips the keys and values then returns the flipped object.\n\n\n* `function assertObjectsEqual`: \nChecks if two arguments are equal. Returns a boolean.\n\n* `function head`: \nTakes an array and returns the first element.\n\n* `function middle`: \nTakes an array and returns an array with the middle elements as an array. If the original array length is odd it will return an array with a length of one, if original array length is even it will return an array with a length of two.\n\n* `function eqArrays`: \nChecks if two arguments are equal. Returns a boolean.\n\n* `function isEqual`: \nChecks if two arguments are equal. Returns a boolean.\n\n* `function takeUntil`: \nTakes an array and an element. Will return the original array up to the where the element is found in the array.\n\n* `function findKey`: \nFor each key it will look though a nested object and find a key that matches.\n\n* `function assertArraysEqual`: \nChecks if two arguments are equal. Returns a boolean.\n\n* `function countLetters`: \nTakes a string and returns an object with how many of each character is found.\n\n* `function eqObjects`: \nChecks if two arguments are equal. Returns a boolean.\n\n* `function map`: \nTakes an array and a function. It will return a new array where each element has been run though the function.\n\n* `function letterPositions`: \nTakes a string and returns an object with each character of the string as the key and value being an array of indexes of where the character was found in the original string.\n\n* `function without`: \nTakes two arrays. The first array will be returned without any of the elements of the second array.\n","readmeFilename":"README.md"}