{"_id":"@brittanyshelley/lotide","name":"@brittanyshelley/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@brittanyshelley/lotide","version":"1.0.0","description":"library of various functions for working with lotide data","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/brittanyshelley/lotide.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/brittanyshelley/lotide/issues"},"homepage":"https://github.com/brittanyshelley/lotide#readme","devDependencies":{"chai":"^4.3.10","mocha":"^9.2.2"},"gitHead":"2b7ba6e2500ef38e830af67d90bcb75fe3315796","_id":"@brittanyshelley/lotide@1.0.0","_nodeVersion":"12.22.12","_npmVersion":"6.14.16","dist":{"integrity":"sha512-IOrW+pYzVoZ4vhDO1XDY0OAgLvrDsK1XSs8+5NjwjU5nljL8WS14IrS0JKkfEN2LMabnvv491jZDKi13wf1+GQ==","shasum":"f1c26843a0816423360d0be0bc25b1170500a9b8","tarball":"https://registry.npmjs.org/@brittanyshelley/lotide/-/lotide-1.0.0.tgz","fileCount":36,"unpackedSize":17696,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQC8QpaGqNzXhnCQx9C8/26HKpdpaUAtbFNQWkkcLl4HaQIgFAQnqzoJ5Kdhtsao5MyBUrMPzeGZoDORkhhFnU+Qbj4="}]},"_npmUser":{"name":"brittanyshelley","email":"brittany.j.shelley@gmail.com"},"maintainers":[{"name":"brittanyshelley","email":"brittany.j.shelley@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1698358467147_0.6070256632985886"},"_hasShrinkwrap":false}},"time":{"created":"2023-10-26T22:14:27.009Z","1.0.0":"2023-10-26T22:14:27.382Z","modified":"2023-10-26T22:14:27.650Z"},"maintainers":[{"name":"brittanyshelley","email":"brittany.j.shelley@gmail.com"}],"description":"library of various functions for working with lotide data","homepage":"https://github.com/brittanyshelley/lotide#readme","repository":{"type":"git","url":"git+https://github.com/brittanyshelley/lotide.git"},"bugs":{"url":"https://github.com/brittanyshelley/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 @brittanyshelley/lotide`\n\n**Require it:**\n\n`const _ = require('@brittanyshelley/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)`:returns first item in array\n* `tail(arr)`:returns last item in array\n* `middle(array)`:returns middle item in array of odd length or the middle two items in an array of even length\n* `eqArrays(arr1, arr2)`:returns true or false when comparing two arrays\n* `assertArraysEqual(array1, array2)`:compares two arrays for strict equality and logs output to console\n* `assertObjectsEqual(object1, object2)`: compares two objects for strict equality and logs assertion message to console\n* `countLetters(string)`:iterates over string and returns how many times each letter was found\n* `countOnly(allItems, itemsToCount)`:iterates over array (allItems) and returns the number of times each (itemsToCount) appear in the array\n* `letterPositions(sentence)`:returns the letters in the string and at what index each of them occur\n* `takeUntil(array, callback)`:pushes each element in array to a new array until the callback returns true, then outputs new array\n* `without(source, itemsToRemove)`:takes one array (source) and returns a new array with (itemsToRemove) removed\n* `eqObjects(object1, object2)`:compares two objects and returns whether they are equal or not (true or false)\n* `findKey(object, callback)`:applys callback function to every key of object and returns the key when it's true\n* `findKeyByValue(obj, val)`:searches object keys for specified value then returns that key when it's true\n* `assertEqual(actual, expected)`:compares two strings to see is they are the same then returns failed or passed\n* `flatten(array)`:flattens nested arrays into one and returns the new array\n","readmeFilename":"README.md"}