{"_id":"@bsaldanha/lotide","name":"@bsaldanha/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bsaldanha/lotide","version":"1.0.0","description":"lotide, a lodash miniclone","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/bevansaldanha/lotide.git"},"author":{"name":"Bevan Saldanha"},"license":"ISC","bugs":{"url":"https://github.com/bevansaldanha/lotide/issues"},"homepage":"https://github.com/bevansaldanha/lotide#readme","devDependencies":{"chai":"^4.3.8","mocha":"^9.2.2"},"gitHead":"ca02214f81e35691f3a11679a4efc5900cb6853c","_id":"@bsaldanha/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-DlX444RRyrYAqwAv2tX2jk0JxhI/HSqLAV2xnhPiBasVeFLOsJS6RDY2fEiCuwijRBBSKgRF90TtAXXCBtowGw==","shasum":"b088315d0722a7dac453d7439b08d3e4dc11009d","tarball":"https://registry.npmjs.org/@bsaldanha/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":9446,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIFVpJ9fUR0ZscqfCPIP6QNuNI04qvUYmAkmd5vwLwRDKAiBGuxTieJ52dLioffj66xPvcO8Eycb1xNpSTlIZj9EOfQ=="}]},"_npmUser":{"name":"bsaldanha","email":"bevansaldanha15@gmail.com"},"maintainers":[{"name":"bsaldanha","email":"bevansaldanha15@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1695676940549_0.19179258983225211"},"_hasShrinkwrap":false}},"time":{"created":"2023-09-25T21:22:20.482Z","1.0.0":"2023-09-25T21:22:20.741Z","modified":"2023-09-25T21:22:21.074Z"},"maintainers":[{"name":"bsaldanha","email":"bevansaldanha15@gmail.com"}],"description":"lotide, a lodash miniclone","homepage":"https://github.com/bevansaldanha/lotide#readme","repository":{"type":"git","url":"git+https://github.com/bevansaldanha/lotide.git"},"author":{"name":"Bevan Saldanha"},"bugs":{"url":"https://github.com/bevansaldanha/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 @bsaldanha/lotide`\n\n**Require it:**\n\n`const _ = require('@bsaldanha/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* `head(array): Gives you the first element of an array`\n  `tail(array): Gives you the the tail of an array`\n  `middle(array): Gives you the middle of an array`\n  `countOnly(allItems, itemsToCount): counts the occurences of itemsToCount in allItems`\n  `countLetters(sentence): counts letters in a sentence`\n  `findKey(obj,callback): finds a key with a callback function`\n  `findKeyByValue(obj, val): finds a key by value,`\n  `flatten(array): flattens a nested array,`\n  `letterPositions(sentence): returns the position of an alphabet in a sentence,`\n  `map(array, callback): iterates over array and performs the callback function,`\n  `takeUntil(array, callback): returns a new array with items from given array until the callback specifies`\n  `without(array, itemsToRemove): return a new array without itemsToRemove`\n  `assertEqual(actual, expected): checks if 2 variables are equal, and prints out pass or fail`\n  `assertArraysEqual(firstArray, secondArray): checks if 2 arrays are equal, and prints out pass or fail,`\n  `eqObjects(object1, object2): checks if 2 objects are equal`\n  `assertObjectsEqual(actual, expected): checks if actual is the same as equal, and prints out pass or fail,`\n  `eqArrays(first, second): checks if 2 arrays are equal,`","readmeFilename":"README.md"}