{"_id":"@anshaalhussain/lotide","_rev":"2-f364f049dd170d24b70a2a54f324b2f7","name":"@anshaalhussain/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anshaalhussain/lotide","version":"1.0.0","description":"A library containing methods to use for iterating through objects, array, strings, then output desired values","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/AnshaalHussain/lotide.git"},"author":{"name":"Anshaal Hussain"},"license":"ISC","bugs":{"url":"https://github.com/AnshaalHussain/lotide/issues"},"homepage":"https://github.com/AnshaalHussain/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.1"},"gitHead":"1a5ba5cd095d5fa4138292fa6dd2c96402c02adc","_id":"@anshaalhussain/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-prReu+k5u3CIP11nPrUnJQWwK2eQtJm0H3m5auZEcV1aJsntCCPuS8JNM/atOfMvbffZZuLTaGh88wex3cq5/g==","shasum":"2e894a90f76cbd9052c179e01dd9bc5ca30ab167","tarball":"https://registry.npmjs.org/@anshaalhussain/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":13397,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhwyNnCRA9TVsSAnZWagAAHcQP/RmCQQtDVXljttYbdP5y\nM2bmamdxt+TVgCEJNp9oMso9pbn8QdkqzDpoZLPDN3q+gY/TZqBEH9ZMhaNq\nXD56KE3XQFm+CcPmagTNW7h0XO4/wW8tCbcwS4kCTd/N2fx472Bw8x1u/9oZ\n2dC48KYN1lVvKrAo+Rf87y8+2d08bze8TxtPGtOj6K/RJ9iUFe8sigpendkK\nuIiVNgN9Lm8/KOY4nENUPuI5HWe6xcKLJzYEUm3DgGa9WLJY8GKJVxXqvIVq\nMfL7Lt5w9CZcNpB2AvHTLZg8fb9ycpU4wGbcZ+Kc9yFwCfyn5/TUrSYpSvSZ\n6SuCN0CNeJbZHb8fQGDO43P3Q3Y3eW8oHGpKUGRTCuWBaIahpo+lSFu1ebHd\nll6NMFPi1wgJQJvEu2OJela2x96FiSqJLu1pI71nj7lCZY4lTg/ENX02n1sh\nZ5xWTYboXRZviqACXS7aAIleeTeZIHjvzZS++nDfJq/gqqhJbsSpbBS9p3m0\n6BnuNAm+qTKzlLhlKIl3hHdbjlW4YmZUZLv9EDNovR34A9YicUw/DxqTat9g\nrzBXNX7yEVAoNFGHWEvC618V5kEDdwwL5lZZVuGxtNQLi52cVpgBc+ReY+9d\n4SL1+GIQh7/TFeNMz0F8vHYyna9YzUb5rhRF3H4zEai0/mkuTtbuOHLsN9tU\nVaqg\r\n=ZHH2\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCOPgJrrPRWb8uBCXojEHrfQQ6KPbYEIBLrySLJT5d/gAIhAMzilZhC6HzQtDToiKfVtVZvpB0w509W7kV6KY2Ae5fO"}]},"_npmUser":{"name":"anshaalhussain","email":"anshaalhussain@gmail.com"},"maintainers":[{"name":"anshaalhussain","email":"anshaalhussain@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1632370287268_0.06785418847880953"},"_hasShrinkwrap":false}},"time":{"created":"2021-09-23T04:11:27.190Z","1.0.0":"2021-09-23T04:11:27.675Z","modified":"2022-04-04T14:19:40.417Z"},"maintainers":[{"name":"anshaalhussain","email":"anshaalhussain@gmail.com"}],"description":"A library containing methods to use for iterating through objects, array, strings, then output desired values","homepage":"https://github.com/AnshaalHussain/lotide#readme","repository":{"type":"git","url":"git+https://github.com/AnshaalHussain/lotide.git"},"author":{"name":"Anshaal Hussain"},"bugs":{"url":"https://github.com/AnshaalHussain/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 @anshaalhussain/lotide`\n\n**Require it:**\n\n`const _ = require('@anshaalhussain/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(array)`: return the first element of array\n\n* `tail(array)`: return every element of array after the first\n\n* `middle(array)`: return middle element of an array (returns median of the middle two values if array has even amount of elements)\n\n* `without(array, itemsToRemove)`: removes the specified element from an array\n\n* `takeUntil(array, callback)`: returns elements in an array until conditional returned through callback\n\n* `map(array, callback))`: returns elements that are returned by the callback. Ex. can use to return first letter of each element map(array, words => word[0])\n\n* `letterPositions(string)`: returns an object containing letters and their position from an inputted string\n\n* `findKeyByValue(object)`: searches for an returns the key of a value from inputted object\n\n\n* `findKey(obj, callback)`: returns boolean for each element in object based on callback\n\n* `eqObjects(obj1, obj2)`: returns boolean on whether two objects are equal\n\n\n* `countOnly(element, itemsToCount)`: returns number of times specified element(s) appear in inputted object\n\n* `countLetters(string)`: returns number of letters in specified string","readmeFilename":"README.md"}