{"_id":"@amarkham/lotide","_rev":"1-0963f562e84965eb2f9813cb5701b4f4","name":"@amarkham/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amarkham/lotide","version":"1.0.0","description":"a mini clone of the Lodash library","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/amarkham1/lotide.git"},"author":{"name":"Andrew Markham"},"license":"ISC","bugs":{"url":"https://github.com/amarkham1/lotide/issues"},"homepage":"https://github.com/amarkham1/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^8.1.3"},"gitHead":"e06bdc99c42ae2b166e5bbacee734f881d82bc49","_id":"@amarkham/lotide@1.0.0","_nodeVersion":"10.20.1","_npmVersion":"6.14.4","dist":{"integrity":"sha512-u4pqZv4VRVOMnoWmhsALdgBnSg3G+ALMUbCXfXuCdh2MUAh8DtZ6oD4XYrjwk0n6Z22c0sVzENXiPG7Ld/875A==","shasum":"da5fb75bd661a059c73294a29367023b91fbb0c8","tarball":"https://registry.npmjs.org/@amarkham/lotide/-/lotide-1.0.0.tgz","fileCount":35,"unpackedSize":21496,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJfaReOCRA9TVsSAnZWagAAK2sP/i0583tDecyZSrjoNn5N\njEvbHEzTlBggfWrtS9y/J60omPStidDcHUH7UW5lwwK0fO7VG4jU/rkXd5kP\n4V/I4ppBGb1z8rgj7grN9C03Vby0zQZN0H5hbKRcZJ9ovImI8uSpVeC7FzHR\nIXTULuFzbJ/eZp9VzzpHLgSMrPWto6YfLzxgjKiRMN/drQtnOYfomxin1l1V\ny8vZjMepXX4QsoNydtZ3J5eHhqczb/J5d3dnk/L9GxZMSSu4G+bOKEQ/IrbH\n4TLqgshtduIxZyxXS1V/+CKWvNPE49oGlAIWyjlvlkylukmKKi22DguW+7UR\nmqhCmi6A+q4UoOWWa6HrswEl+rN3tCPkb6TIahg0qEM36+7bfIHjwF87T0bQ\nvZXRjgWKEpFkMO8fSYv87JzNrhxl8H9ac72VqRoKbTFI30HOXbFaUWm5p8/r\n7cCTNWC3h4l9GerFP+0gW9fgPPrNTtyXMdifXjlIEi7vOSbsQ/up+6/78jO9\nvOI9Y4iMAcm0YTNYGV3V6DMB0S9LOFEYVyL7w3bfPIaK9kEUM8w1OZAU3B6Y\nKdrQPjfuPVRp5LMZaZQUIj20A6WTzPuaLYom3w9UZJVWf1ao8vxHR+l9h3pf\njlr0gE1Aq3CTZxJ5oOor3EE9b9418L34YcnuB80qd6LpXWXTrB442/T0PhHO\nJ9AT\r\n=noD5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCgl1DpYmAARK/DqgXvHXWsPkGXY7wPgqLQbr7xmupC8QIgIiJEn6xwn8zHLMl/HA5q+9QAcQrkDokbELvoBFBGyNU="}]},"maintainers":[{"name":"amarkham","email":"andrewjmarkham1@gmail.com"}],"_npmUser":{"name":"amarkham","email":"andrewjmarkham1@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1600722830440_0.3060318795780661"},"_hasShrinkwrap":false}},"time":{"created":"2020-09-21T21:13:50.408Z","1.0.0":"2020-09-21T21:13:50.542Z","modified":"2022-04-04T13:43:48.989Z"},"maintainers":[{"name":"amarkham","email":"andrewjmarkham1@gmail.com"}],"description":"a mini clone of the Lodash library","homepage":"https://github.com/amarkham1/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amarkham1/lotide.git"},"author":{"name":"Andrew Markham"},"bugs":{"url":"https://github.com/amarkham1/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 @username/lotide`\n\n**Require it:**\n\n`const _ = require('@amarkham/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)`: returns the first element of an array\n* `tail(array)`: returns everything but the first element of an array\n* `middle(array)`: return the middle elements of an array (note: includes two elements when array size is even)\n* `assertArraysEqual(array1, array2)`: logs to console whether provided arrays are equal\n* `assertEqual(actual, expected)`: logs to console whether the '===' operator returns true for provided arguments\n* `assertObjectsEqual(object1, object2)`: logs to console whether provided objects are equal\n* `countLetters(sentence)`: returns an object with the frequencies of each character in a string\n* `countOnly(allItems, itemsToCount)`: returns an object with the frequencies of each character specified in an itemsToCount array\n* `eqArrays(array1, array2)`: tests deep equality for two arrays\n* `eqObjects(object1, object2)`: tests deep equality for two objects\n* `findKey(object, callback)`: returns the key of the object whose callback on both keys and values returns true\n* `findKeyByValue(object, callback)`: returns the key of the object whose callback function on the values only returns true\n* `flatten(array)`: takes an array of maximum 2D and returns a 1D array\n* `letterPositions(sentence)`: returns an object with the positions of each of the characters in a sentence\n* `map(array, callback)`: mimics the built-in map function on an array\n* `takeUntil(array, callback)`: returns an array with all of the original elements until the callback on an element returns false\n* `without(array, itemsToRemove)`: returns an array excluding elements provided","readmeFilename":"README.md"}