{"_id":"@adrian_faustino/lotide","_rev":"1-fe493934643b4c7913d379889634c6e1","name":"@adrian_faustino/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@adrian_faustino/lotide","version":"1.0.0","description":"Lighthouse Labs Week 1 Lotide Project","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/adrian-faustino/lotide.git"},"author":{"name":"Adrian Faustino"},"license":"ISC","bugs":{"url":"https://github.com/adrian-faustino/lotide/issues"},"homepage":"https://github.com/adrian-faustino/lotide#readme","devDependencies":{"mocha":"^7.1.0"},"gitHead":"2eb856996a3a2252d9af264aa2f34195bf35dd8f","_id":"@adrian_faustino/lotide@1.0.0","_npmVersion":"5.6.0","_nodeVersion":"8.9.4","_npmUser":{"name":"adrian_faustino","email":"contact.adrianfaustino@gmail.com"},"dist":{"integrity":"sha512-xx+MI4/h14mS/GWFA3ZFs3Qwihiw4/GJGnDxFvXt14EiPhSokkqilIzgj+6cmHUtlfdMtOaRys+VbeEllvtsDw==","shasum":"d25c934fdbb37921e21ee824cc1a11dc3973ee8c","tarball":"https://registry.npmjs.org/@adrian_faustino/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":23978,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeZooICRA9TVsSAnZWagAAr+YP/3czEApRGbcG0Xz4rzxO\nKfvkQYCEIYystEU7YWfz9VJ9t7WFuLi6TqvicUECAKxkWnrCWJJzACd16MMH\n9mSZ9vxxnpmUDPqToxDayRgKCuUXSU0RnWAzDaI/owx2dtypFDfj2inl4lPu\nBLA4dzkaivZrYqES4y4bm84llm24hEOeGz0h4HNd/A5yjXI3AlTXqrcgDVpw\nPcFBuxJkFqHE9GofsrDLUc0Jn78hsSozINSFrY3eRizVJT2hgO6CpVJazF3B\nCkuTN3QKF5dBbwfviBSPaQE0mp/RnzCa9w78ptt5oEkVGuNWaw1TQXbQ/y6H\ntExN6GAzgsd6NId/3Xc8624yeWvy4uVvtVgGgjDEbRiGky3s5hTSh2ovpILv\n+HbmbvOiaF42+Kuh7zOjX5K3SMzcBtTw0JY9PC/s8+81ud2ho0lbFHRLe16M\nOfPEeQAukB6RAYEue56kuMw5KnDmH88l+hBuRHvDR/90SCTOQKpCKiKMr+sw\nUezd4jBhePxoEkG0OaD+/402JxcjP2rLIfMIeJ6X2uMM6YK+nMgkZ/orUsAV\ncJaIUYS/xFOzfPzjpc0FN/qOopkvlkQ/nA4O5Ndu8YB0LBuUw7fBk0Phfs3N\nrb3oejdRt/9lNo0wiT99jStCkNKdHLe9JskBFecA6GDoKuuFs5gQQhpFSPN5\npIyI\r\n=v9B7\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDh7P5S7rk6hfQhXhRyEmrv3oxQMApSHCRqWjsvAyemjAIhALU0FuhrLZrd/oU0PpPUryRe97Jyl0R+ZgQ8zzDBYSBf"}]},"maintainers":[{"name":"adrian_faustino","email":"contact.adrianfaustino@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1583778311664_0.170905578376372"},"_hasShrinkwrap":false}},"time":{"created":"2020-03-09T18:25:11.429Z","1.0.0":"2020-03-09T18:25:11.786Z","modified":"2022-04-04T11:37:07.257Z"},"maintainers":[{"name":"adrian_faustino","email":"contact.adrianfaustino@gmail.com"}],"description":"Lighthouse Labs Week 1 Lotide Project","homepage":"https://github.com/adrian-faustino/lotide#readme","repository":{"type":"git","url":"git+https://github.com/adrian-faustino/lotide.git"},"author":{"name":"Adrian Faustino"},"bugs":{"url":"https://github.com/adrian-faustino/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 @adrian_faustino/lotide`\n\n**Require it:**\n\n`const _ = require('@adrian_faustino/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* `assertArraysEqualTest((...)`:) takes 2 arrays as parameters, actual and expected. Prints assertion message based on if it's true or false.\n* `assertEqualTest(...)`: takes 2 primitive parameters, actual and expected. Prints assertion message based on if it's true or false.\n* `eqArrays(...)`: takes 2 arrays as parameters. Returns true if the arrays are similar.\n* `assertArraysEquals(...)`: takes 2 arrays as parameters, actual and expected. Prints assertion message based on if it's true or false.\n* `assertEqual(...)`: takes 2 primitive parameters, actual and expected. Prints assertion message based on if it's true or false.\n* `assertObjectsEqual(...)`: takes 2 objects as parameters, actual and expected. Prints assertion messaged based on if it's true or false.\n* `countLetters(...)`: takes a string as a parameter. Returns an object that shows how much times each letter appears in the input string,\n* `countOnly(...)`: takes 2 arrays as parameters. Returns true if the arrays are similar.\n* `countOnly(...)`: takes 2 parameters, a list of strings, and a string. Returns an object that shows how many times a string appeared in the list.\n* `eqObjects(...)`: takes 2 objects as parameters. Returns true if the arrays are similar.\n* `findKey(...)`: takes an object and a function as parameters. Returns the first key based on the given value.\n* `findKeyByValue(...)`: takes an object and a value as parameters. Returns the first key based on the given value. \n* `flatten(...)`: takes an array as parameter. Returns the sum of the array.\n* `head(...)`: takes an array as parameter. Returns the first element in the array.\n* `letterPositions(...)`: takes a string as a parameter. Returns an object showing how many times each letter appears in the string.\n* `map(...)`: takes an array and a callback function as parameters. Modifies each element in the array based on a callback function.\n* `middle(...)`: takes an array as parameter. Returns middle element as an array. If the length is equal, returns 2 middle elements in an array.\n* `tail(...)`: takes an array as a parameter. Returns everything but the first element in an array.\n* `takeUntil(...)`: takes an array and a callback function as parameters. Returns every element in the input array up until the given value. Returns a new array.\n* `without(...)`: takes an array and value as parameters. Returns a new array excluding the value.\n","readmeFilename":"README.md"}