{"_id":"@anneloes94/lotide","_rev":"1-6d85b7a997791839f4f71d474a0c0334","name":"@anneloes94/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@anneloes94/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"dependencies":{},"devDependencies":{"chai":"^4.2.0","mocha":"^7.0.0"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/anneloes94/lotide.git"},"author":{"name":"Anneloes van Kesteren","email":"vankeste@ualberta.ca"},"license":"ISC","bugs":{"url":"https://github.com/anneloes94/lotide/issues"},"homepage":"https://github.com/anneloes94/lotide#readme","gitHead":"6a27d2feccddf0379e01f549bbe8a8abf9c914a6","_id":"@anneloes94/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.13.6","dist":{"integrity":"sha512-TWlQSsuCyB3rqJJhc95bDGLzLwK34eUEvTejpUo3Wybf7n/FBWt+6QOLTp7XkI6XL3rCPFFR+rShjCbZO65PBQ==","shasum":"c86d88905e520c2b095536edc103fe8d7fb455ea","tarball":"https://registry.npmjs.org/@anneloes94/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":24681,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHNvECRA9TVsSAnZWagAA5xIP+wRn1Spci6tT2yk39ltC\nx0PmIKCfAO7FjRE1yasqouaSTa5neOFGdy8BeswAYokXK/KzreOX3+I6IRy3\nZaGDFQ25Sx08UVXI74hgXUM8wJTYoVUdfVJQGffPI+Iapp6/31m5XvfHTrV4\nMf5dCt19Wfk0V5eDLsdKXZ5/aXUjBv/hgnrVPxZDVJ0LM8pxU8zyk3ReEzC1\nPvDi5OIggC6PW0IqIcIsVlP9Y4kKa1zME1uvtoPlmy9vcJPgwNIp4hWYwP11\n+WP2BFKgE04XXipDc4yCH+pfRGmkddSHNeJxkTRHHOSetdr304GCtBLfiQQf\nhZBSBc4REtKGVlbrXJzf42duoTybpeyl3YqW0RVxQ78cTWf0xbismLbkbItJ\nSgP/vc01zPyZZs+Zx2bo2Z0DwnTu+vPPc9NPyMxLrbG7qdEPhrKvODpWzR+T\nbW10Qw6+3Guo9TWJFqoNpfhBWaX5fDHyUG8JBLe/1xg4KZnZkYtZY8RVoITP\n8G8d7FUBhmaKX4G80Jq/m7fG0S/Zi10ApYq/hEvKdVwGWssiwnLmwCy4ycwy\nD0RKBS+Z0EsIjpSfL1ahxJLMoX7msKp9FwAhp+5EWBKP0CnPMCXzJgG9AxE6\nB0nGl5ICL0SmsQmvqlSjvvlU6gjig23lF1/yK6WOi2BXVKHmT7cRes/X6lzq\nk6j9\r\n=99qv\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCmkHYtGCNMbizG83q4MWrzlDDE3OAL7n6up25he9VMtgIgJI4FlgflCALbI1h/zmveN8xX0l+/H5VZ3L2kkUTz+Bk="}]},"maintainers":[{"name":"anneloes94","email":"vankeste@ualberta.ca"}],"_npmUser":{"name":"anneloes94","email":"vankeste@ualberta.ca"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1578949571704_0.7411195261576289"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-13T21:06:11.672Z","1.0.0":"2020-01-13T21:06:11.883Z","modified":"2022-04-04T14:14:06.458Z"},"maintainers":[{"name":"anneloes94","email":"vankeste@ualberta.ca"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/anneloes94/lotide#readme","repository":{"type":"git","url":"git+https://github.com/anneloes94/lotide.git"},"author":{"name":"Anneloes van Kesteren","email":"vankeste@ualberta.ca"},"bugs":{"url":"https://github.com/anneloes94/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 @anneloes94/lotide`\n\n**Require it:**\n\n`const _ = require('@anneloes94/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(array1, array2)`: logs whether two arrays are equal\n* `assertEqual(actual, expected)`: checks two values to see if they are equal\n* `assertObjectsEqual(actual, expected)`: logs whether two objects are equal\n* `countLetters(sentence)`: creates an objects of letter keys and count values out of a sentence\n* `countOnly(allItems, itemsToCount)`: filters out items to count out of an array of items and returns an object\n* `eqArrays(arr1, arr2)`: compares two arrays and sees if they are equal\n* `eqObjects(object1, object2)`: sees whether the keys and values of two objects are the same\n* `findKey(object, callback)`: returns a key that has to be found in an object, or undefined if it is not present\n* `findKeyByValue(object, inputValue)`: returns the first key in an object that matches the inputValue, or returns undefined\n* `flatten(arrayOfArrays)`: flattens an array input that may exist of multiple arrays\n* `head(array)`: returns the first (head) element of an array\n* `letterPositions(sentence)`: returns an object of indices of letters in a sentence\n* `map(array, callback)`: modifies an array with a callback function, returns a new array\n* `middle(arr)`: takes the middle element(if length is odd) or elements (if length is even) of an array\n* `tail(array)`: returns the tail of an array (all but first element)\n* `takeUntil(array, callback)`: returns an array that stops when a callback condition has been met\n* `without(source, itemsToRemove)`: returns an array that was filtered from another array ","readmeFilename":"README.md"}