{"_id":"@bshaw89/lotide","_rev":"1-d0b84b58670a07f61050679d10d479b2","name":"@bshaw89/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bshaw89/lotide","version":"1.0.0","description":"a library inspired by lodash","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/bshaw89/lotide.git"},"author":{"name":"Benjamin Shaw"},"license":"ISC","bugs":{"url":"https://github.com/bshaw89/lotide/issues"},"homepage":"https://github.com/bshaw89/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^7.1.2"},"gitHead":"c65f23d1ea5e3e93819562d602d5e1a22e2c10d8","_id":"@bshaw89/lotide@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"bshaw89","email":"shaw.j.benjamin@gmail.com"},"dist":{"integrity":"sha512-t330mtDqxUN/E3bxoqNC/zfkPacpd3LpqyyZCnAghwAVJdApmNW2r+UgC9rENQiG4qfTTCfzGgscNSlntQ5yxw==","shasum":"3d611786b9c66ba44b635421341819f6e0cccc1a","tarball":"https://registry.npmjs.org/@bshaw89/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":23619,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJesMoZCRA9TVsSAnZWagAAFDIP/3MJc6EdprF4RJQ0PMlU\noh7mbI5dE6YwqHOKd+ToLsmezxYaNd+qLF57bVbCDPwsack3T5T3yKIOBmRf\nPdZctl5NEoknHVHUrbmoxSAI/e2+KdTe0hUh+jC5k6K4vmXfQa8nSNpuqEyq\nf1JjhNcICH+5mdrnIdiN7AKC7/+h9jHRE8UMe1Pnk3Xljq7WJR+ICsScEC0y\nYAOgi4PCLzBGvv5epJW3XLCE1lOZWFqr+lqBYgPMNmz1ZC76/TElFpFt5p++\nMFtiARUZ++sZe3oiYtYeP8vNCzwyuL37Lg6YVlCXuNADMyKhLc/wyw77o9fD\nYtDOzEl6IQYtwrOwNmTPHNEfOs8uhLORBHi0tce+9OESqCWuw/P36QCUwTtg\nsoklA5uqQj1+iojo0xDa28z7EMY/6i/Huvqp5/n3+AYaA8gyMi3kOFgsqXVd\nq/u6J8pWvD9+b7Q5mkR1Jxpj4IDTVYW6WlcAyv4g73GGb6JM4c5kmVjIl0+Q\nnxVcgja/sDkCZrRjZvBj/4a9eEkOT4vehZZ0IkZGeC3CcFBpDvXtoyuH628G\n3vzQ7xoe5/LcjhU+hWt0f4029TJmMDLYfuzcX1Ki/bhWz2tKsSuMNbePQ6sj\nsSQD+cQkk5FsIAPDLODmaA9UIqbDyor09sqM0lSfeU48OnGMNUW1IH9aINOY\n4XQW\r\n=JUZK\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDk5FA/nvxPwMbBLh7JxFrG82i1YVJPN/f41RjAaJeZVwIgfBd2Sp8qOxz9X/ys3igTSf32+D1MPNbMxSbJnsgMouA="}]},"maintainers":[{"name":"bshaw89","email":"shaw.j.benjamin@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1588644376693_0.9987892491493102"},"_hasShrinkwrap":false}},"time":{"created":"2020-05-05T02:06:16.640Z","1.0.0":"2020-05-05T02:06:16.795Z","modified":"2022-04-04T20:50:49.633Z"},"maintainers":[{"name":"bshaw89","email":"shaw.j.benjamin@gmail.com"}],"description":"a library inspired by lodash","homepage":"https://github.com/bshaw89/lotide#readme","repository":{"type":"git","url":"git+https://github.com/bshaw89/lotide.git"},"author":{"name":"Benjamin Shaw"},"bugs":{"url":"https://github.com/bshaw89/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 @bshaw89/lotide`\n\n**Require it:**\n\n`const _ = require('@bshaw89/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* `assertArraysEqual(arr1, arr2)`: compares two arrays and asserts a positive or negative message if they are/are not equal\n* `assertEqual(actual, expected)`: compares two arguments and asserts a positive or negative message if they are/are not equal\n* `assertObjectsEqual(object1, object2)`: compares two objects and asserts a positive or negative message if they are/are not equal\n* `countLetters(letters)`: returns the number of times each letter in the argument appears\n* `countOnly(allItems, itemsToCount)`: returns the number of times the itemsToCount appear in allItems\n* `eqArrays(arr1, arr2)`: compares two arrays to see if they are equal\n* `eqObjects(object1, object2)`: compares two objects to see if they are equal\n* `findKey(object, callback)`: searches for a key within the object and executes the callback function on the key\n* `findKeyByValue(object, value)`: returns the object keys that match the value\n* `head(arrFirst)`: returns the first element in an array\n* `letterPositions(sentence)`: returns the index positions of each letter in a sentence\n* `map(array, callback)`: returns the first element of each item in an array\n* `middle(array)`: returns the middle element in an array\n* `tail(arrLast)`: returns the last element in an array\n* `takeUntil(array, callback)`: returns a new array of each item in the original array up until a stopping condition define in the callback\n* `without(source, itemsToRemove)`: returns an array without the itemsToRemove","readmeFilename":"README.md"}