{"_id":"@andyfarquharson/lotide","name":"@andyfarquharson/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@andyfarquharson/lotide","version":"1.0.0","description":"This is our own version of lodash","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/andyfarquharson/lotide.git"},"author":{"name":"andyfarquharson"},"license":"ISC","bugs":{"url":"https://github.com/andyfarquharson/lotide/issues"},"homepage":"https://github.com/andyfarquharson/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^10.1.0"},"gitHead":"5fe8177d41952f68feb24d57a47fc3334e6aeab4","_id":"@andyfarquharson/lotide@1.0.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-6bdBmnzA2cxKE/00iltZUfXcIMmIZLOEVhPCVt/yjXVnzIkmQAGRVsl7ZlJyIlWWoxdrM2Aos312vJNwrotZAA==","shasum":"058aed6bd0784aca4243194544ae4a864b299b91","tarball":"https://registry.npmjs.org/@andyfarquharson/lotide/-/lotide-1.0.0.tgz","fileCount":31,"unpackedSize":31361,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHsSumndb2V+/w+XwRRzPiq2OSkU82PgNlyno7NgzeJVAiAtnobnkwvXouRetgjdIlVudSWLs4QlQCyXqWXL27DVNw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjV1B3ACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8wA/8CyrGU02q2R8sgy8iwZksM4UveodSoEtiakpEbXXweNo0HS7j\r\nnQ+unp8KLOrEBRUxYY6SyanDd+WlcxKa4axdLhje37KiDR3k4l5m6oRPbu8T\r\nGzsTdtXptFxDacwDiFh3wzWUgrkHoRlFZYXOsMe2QLgSld/O7yWvbkMV4b8a\r\nmu0BBJ5HV+3h1LhFg/+x6So6Ro/H82/DuaJT9vO3RWDjImvUdQWA62tYzZkl\r\nN6BRVG6rXD1XvmZj4X41s35WidUCAfeT80yLcyHp3K7wf1sRnbeXGmxQse51\r\nBFOt7vcviRubp6z8dkuOMDoHTgy9TxYzPGW2iJRpW/dh5+/CkzRE29j0g4Ji\r\n39a57y3bxQriHJ4s0qp/3Zz5wL7bdU9A9f35bdaTrHghMdjs3BN0uAWKRdhX\r\nsl8xlyLtSk2nJnMmKkSTTwG6w4ItRbKkZbLM5P99pVp5aM5JZMziq3rrg/8e\r\n/XKqZpMF+jpcX8+u825Nn8ijnKjcehW+N/Z3GPvsw+hO20u1j54TFzGf0gL4\r\nfzqZF0xNZn6cBsinlFlsJBkzyB8eG1hcoNQCdm7ld16gymK9LYNfPzrs/QaN\r\nywVbeWM2dJOnq8zWyFxdik9p60+SoV6XK0rwcnx0X7zSmgH0BQmWoZaD191e\r\nKkVRpMMf8QfIQH24WXw1JGmCil6kgFbX7O4=\r\n=11Ca\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"andyfarquharson","email":"andyfarquharson@gmail.com"},"maintainers":[{"name":"andyfarquharson","email":"andyfarquharson@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1666666615483_0.2406844088724922"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-25T02:56:55.433Z","1.0.0":"2022-10-25T02:56:55.687Z","modified":"2022-10-25T02:56:55.816Z"},"maintainers":[{"name":"andyfarquharson","email":"andyfarquharson@gmail.com"}],"description":"This is our own version of lodash","homepage":"https://github.com/andyfarquharson/lotide#readme","repository":{"type":"git","url":"git+https://github.com/andyfarquharson/lotide.git"},"author":{"name":"andyfarquharson"},"bugs":{"url":"https://github.com/andyfarquharson/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('@andyfarquharson/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* `assertEqual(actual, expected)`: Takes two parameters and compares them.\n* `assertObjectsEqual(actual, expected)`: Takes two objects and compares them.\n* `countLetters(sentence))`: Counts how many letters are in a string. \n* `countOnly(allItems, itemsToCount)`: Counts a specific item in a list.\n* `findKey(object, callback)`: Uses a callback fucntion to locate specific key in an object.\n* `eqObjects(object1, object2)`: Compares the values of elements in two objects.\n* `findKeyByValue(object, value)`: Locates a key in an object by its value.\n* `head(input)`: Returns the first element in an array.\n* `letterPositions(sentence)`: Returns the value of letters in a string.\n* `map(array, callback)`: Uses a callback function to create an array with values of an array.\n* `middle(array)`: Returns the middle elements of an array\n* `tail(input)`: Returns all but the first element of an array.\n* `without(array, remove)`: Returns the initial array with one of the elements removed.\n","readmeFilename":"README.md"}