{"_id":"@codyhilborn/lotide","name":"@codyhilborn/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@codyhilborn/lotide","version":"1.0.0","description":"A mini-clone of the Lodash library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/CodyHilborn/lotide.git"},"author":{"name":"Cody Hilborn","email":"codyhilborn11@gmail.com"},"license":"ISC","bugs":{"url":"https://github.com/CodyHilborn/lotide/issues"},"homepage":"https://github.com/CodyHilborn/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"9eb93aed532a3389aa1d5005cc5aea241d9facb5","_id":"@codyhilborn/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-jaN5bh08vfxjk5g2Y3wZta/EZnKwTjJiotC31S7D5mkKeTpMsFdN28uQl1yPQjEBpnpdUwGN0ZCWBydBftF5RQ==","shasum":"75b618b0dc3839b34b8dd777fe35ea311d06acaa","tarball":"https://registry.npmjs.org/@codyhilborn/lotide/-/lotide-1.0.0.tgz","fileCount":25,"unpackedSize":19001,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEs9vJAmshZPwEeGbisGfua9kBzhlFIBFxOiPPfIflPTAiBB+/A6N0xl1AmYpSC6LAFesmDiQU/c9tgkR9mj3sGfTA=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjxgUeACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmqaag//WXVmsucdeDEal1Le7or2hV1azOpAQ65hoB8ntAeUnmSUtj2s\r\nyNocsGq04lpphxFpxnkxn910LG25unB2/PaufFWTNd3WiOBJvefgoGJIGP3Q\r\nxV1qgSR1+IRPb77ykl2/2RLlivfEBGi3irtMOFn7QEiiBI+lQVo00AcYPoO8\r\neT0djCde0v0pAxWl6fTadfaT613sWDMUAp9OvS4VEgBJdKvyJUI4lPQ+ECL5\r\nR5tlecJN83sk1pQnRy1TZOD5mKHT0MidwnAcMS0s8reKs5aNsPbW8N++iLXx\r\nz4pa8xps5C1u0kuCR/7gd/Ciqhp4e6tAfE6z7H7ofYoXg/NUMWaR6mAJ9y47\r\nAm0dZLeCquvvqWtC6+z6A1HjV9MlsIvgKR0CRAVC4RzG5pdBKvdjXVCja45u\r\n2KVpQZ2lKuHuMl9bnAp/2cMN+HwWshjLzsJIqUQVBI7Z6QzmcV2BmQ6Ludev\r\nIVrJpIu+1/kTjOeqvLKIUNY7adU6qW3P2VXFPtNPGZ7tSRdl4mb7zO6FGch3\r\nh30oUp1yycpwTNzFgvwtQOO8KzVgKc1ItC6Dz6erc3I606r4p98yh6FtGFAI\r\nOEx0FRWJalFd92z/Q19LL/8Q40c1xYnjLuN/7AXqZaR19F5KT/SF8KExYOZ+\r\nN8rM8NhUQHHWk3QMq+gasKzHU0M99BQvC1M=\r\n=m9Wv\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"codyhilborn","email":"codyhilborn11@gmail.com"},"maintainers":[{"name":"codyhilborn","email":"codyhilborn11@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1673921821916_0.5721854512529021"},"_hasShrinkwrap":false}},"time":{"created":"2023-01-17T02:17:01.854Z","1.0.0":"2023-01-17T02:17:02.073Z","modified":"2023-01-17T02:17:02.238Z"},"maintainers":[{"name":"codyhilborn","email":"codyhilborn11@gmail.com"}],"description":"A mini-clone of the Lodash library.","homepage":"https://github.com/CodyHilborn/lotide#readme","repository":{"type":"git","url":"git+https://github.com/CodyHilborn/lotide.git"},"author":{"name":"Cody Hilborn","email":"codyhilborn11@gmail.com"},"bugs":{"url":"https://github.com/CodyHilborn/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 @codyhilborn/lotide`\n\n**Require it:**\n\n`const _ = require('@codyhilborn/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)`: Logs a 'pass/fail' message to the console based on a comparison between an expected output and an actual output.\n* `assertArraysEqual(actual, expected)`: Logs a 'pass/fail' message to the console based on a comparison between an expected array and an actual array.\n* `assertObjectsEqual(actual, expected)`: Logs a 'pass/fail' message to the console based on a comparison between an expected object and an actual object.\n* `countLetters(string)`: Counts the instances of each letter in a string and stores the results in an object.\n* `countOnly(allItems, itemsToCount)`: Counts only the specified instances of each element in an array.\n* `eqArrays(array1, array2)`: Compares between two arrays to see if they are an exact equal match.\n* `eqObjects(object1, object2)`: Compares between two objects to see if they are an exact equal match.\n* `findKey(object, callback)`: Uses a callback function to find the first key that returns a truthy value.\n* `findKeyByValue(object, value)`: Finds the key of an object by matching with a value passed into the function.\n* `head(array)`: Returns only the first element of an array.\n* `tail(array)`: Returns everything except the first element of an array.\n* `letterPositions(sentence)`: Returns an object that contains the indicies of each letter from a sentence.\n* `map(array, callback)`: Takes an array and a callback function as arguments, returns a new array with values altered based on the conditions specified in the callback function.\n* `middle(array)`: Returns the middle element(s) of an array. If the length of the array is an odd number, it returns 1 middle element. If it's an even number, it returns the two middle elements.\n* `takeUntil(array, callback)`: Loops through an array until the first element specified in the callback function is found, then returns every element from the 0th index until the specified element.\n* `without(source, itemsToRemove)`: Accepts a source array and an array of items to remove, then returns a new array of only items not included in the itemsToRemove array.\n\n\n\n","readmeFilename":"README.md"}