{"_id":"@abigael-faigao/lotide","_rev":"2-edd746ed7bc751461e24fdb63231a411","name":"@abigael-faigao/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@abigael-faigao/lotide","version":"1.0.0","description":"a mini/modified version of lodash library created as a project at Lighthouse Labs","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Abby1129/lotide.git"},"author":{"name":"Abigael Faigao"},"license":"ISC","bugs":{"url":"https://github.com/Abby1129/lotide/issues"},"homepage":"https://github.com/Abby1129/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"a188a9df70313208cb2999b7282a90c1260a2a52","_id":"@abigael-faigao/lotide@1.0.0","_nodeVersion":"12.19.0","_npmVersion":"6.14.8","dist":{"integrity":"sha512-mYh+R4x6/Ww+nTM1eA2mwiLWny4tqLA3ytCTR/CIOxMAnBTfu/yQ4wfY4mV7PrzmIF/RJcCRUzXMxkU1g1tYvg==","shasum":"f76f017f44110e23444658b689bd04a333ac3f0f","tarball":"https://registry.npmjs.org/@abigael-faigao/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":11919,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhux6wCRA9TVsSAnZWagAA1twP/10iWD8ggrgCtFjHE9HC\nMmY5xW0ycwGJLTUIQZNyVpVz8kitIGEw+1I9l4jUsdsv+Q2GlndiXNKmysmn\n/MPrJywwudg7Owc5oxaJlzdEj3Q7kTyQHTticr1VSioW/1KdBqIBtwBI5+8L\nNnQfp3+suh3dCcuI1X2zgy8JqLilHJ4OFzjIUD4uAVMCn/hDm1jhR8RbEv8q\n9HvU1FPFwTDgh9QFa0ipJ5gZ3TRMNZxXqs3IfIvDzR232qtqgt2k+sTQrNjD\nyPVPyJSUPOxKgTkQ8I83b6497iaVmSmoKOEHflvH6TCrTf4rDkl2/goc2TyO\nWenB0wrkC692dfJmrbxjRj8LjRSCznRobe+U2Rg5lIGa0hn6bi3EkhEaMeUH\n0u0rX87wGOKESh0FQhPpkMiGZffYdP2T43yTxsKalQpeNpbIDEN41mc5C1Z2\nYZzXsAwSmeTsAe9sGX9Zz7TEdgwBugNsbHl/dCm8q3JWk0JfDQyk7GvCTj4P\nAgIqKj9WSMNOpOQx8fQ6XP0xuF83QBpf0QQEV7TRUmzMu1aviHosCTNsb3E2\n82xdGuyI2Q5MGX2VXgDrDRxVflocix+34/aZwdNlBtqS0cEYzRpx5END2Odi\nu/JvMScRNW6aXcaI82jydbl0RQdE1FyFhYlbOi+raKUbJQkyifcsDgEXMkhH\nY3Cx\r\n=bRTu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCSka27fC9EQ+A9LmnyfFj5vOTjwC5AodZL9YgYpUiOrwIgL0wHO7XzTCjZmekVeTfdLQXwLMkMXOIqi5/JKHlaEdM="}]},"_npmUser":{"name":"abigael-faigao","email":"abby_faigao@yahoo.com"},"maintainers":[{"name":"abigael-faigao","email":"abby_faigao@yahoo.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1636783904425_0.6903294986888349"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-13T06:11:44.376Z","1.0.0":"2021-11-13T06:11:44.553Z","modified":"2022-04-04T10:59:31.261Z"},"maintainers":[{"name":"abigael-faigao","email":"abby_faigao@yahoo.com"}],"description":"a mini/modified version of lodash library created as a project at Lighthouse Labs","homepage":"https://github.com/Abby1129/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Abby1129/lotide.git"},"author":{"name":"Abigael Faigao"},"bugs":{"url":"https://github.com/Abby1129/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 @abigael-faigao/lotide`\n\n**Require it:**\n\n`const _ = require('@abigael-faigao/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):\n\n  - function that takes in 2 arrays and returns true if they are equal and false otherwise\n\n- assertEqual(actual, expected):\n\n  - function that compares two values and prints out a message if they match or not\n\n- assertObjectsEqual(object1, object2):\n\n  - function that takes in 2 objects and returns true if they are equal and false otherwise\n\n- countLetters(string):\n\n  - function that takes in a sentence and returns a count of each of the letters in the sentence\n\n- countOnly(allItems, itemsToCount):\n\n  - function that takes in a collection of items and returns a specific subset of those items\n\n- eqArrays(array1, array2):\n\n  - function that takes in 2 arrays and returns true if the arrays are equal and false otherwise\n\n- eqObjects(object1, object2):\n\n  - function that takes in 2 objects and return true if they are equal and false otherwise\n\n- findKey(object, callback):\n\n  - function that takes in an object and callback and returns the first key that meets the criteria specified in callback\n\n- findKeyByValue(object, value):\n\n  - function that takes in an object and a value and returns the first key that corresponds to that value\n\n- flatten(array):\n\n  - function that takes in an array that contains elements including nested array of elements and returns a flattened version of the array\n\n- head(array):\n\n  - function that takes in an array and returns the first element in the array\n\n- letterPositions(string):\n\n  - function that takes in a string and returns all indices of letter positions in the string\n\n- map(array, callback):\n\n  - function that takes in an array and a callback and returns a new array based on the results of the callback on each item in the array\n\n- middle(array):\n\n  - function that takes in an array and returns middle most element of the array. If array is even, return two middle indices. If odd, returns middle index.\n\n- tail(array):\n\n  - function that takes in an array and returns everything except the first element of the array\n\n- takeUntil(array, callback):\n\n  - function that takes in an array and callback and returns a slice of the array based on the criteria specified in the callback\n\n- without(source, itemsToRemove):\n  - function that takes in a source array and an itemsToRemove arrays and returns only the items from the source array that are not in the itemsToRemove array\n","readmeFilename":"README.md"}