{"_id":"@brettg17/lotide","_rev":"1-8c94c2f2271f9ef6b06173e7e27fe9a9","name":"@brettg17/lotide","dist-tags":{"latest":"1.1.1"},"versions":{"1.0.0":{"name":"@brettg17/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/brettg17/lotide.git"},"author":"","license":"ISC","bugs":{"url":"https://github.com/brettg17/lotide/issues"},"homepage":"https://github.com/brettg17/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"efc12843d210b0398fa3dcb421ff90b1e0a4f7e4","_id":"@brettg17/lotide@1.0.0","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-rvE3vafFp6z0TOeHZYX37XQwViTZB+/F9N40sp8wHVhuBbaiIbvZrsrFK7tYQ++Lv8GwlTYDi8/+aDAmoz8BpQ==","shasum":"21e2a4f9a4c31594fde12ef44c72ddf40dfb9d13","tarball":"https://registry.npmjs.org/@brettg17/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":25896,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCvekCbofK1550MgSryklYvh4FxhdJ8JYsA1XWBG4XzQwIgNkmxFvdHmWmbeAn7svTOIdNr7UG9x3b3qNlnOKYN5Dk="}]},"_npmUser":{"name":"brettg17","email":"brettgelinas7@gmail.com"},"maintainers":[{"name":"brettg17","email":"brettgelinas7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1708109575516_0.5736457749139758"},"_hasShrinkwrap":false},"1.1.1":{"name":"@brettg17/lotide","version":"1.1.1","description":"Lighthouse Labs Lotide Project","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/brettg17/lotide.git"},"author":{"name":"Brett Gelinas"},"license":"ISC","bugs":{"url":"https://github.com/brettg17/lotide/issues"},"homepage":"https://github.com/brettg17/lotide#readme","devDependencies":{"chai":"^4.3.1","mocha":"^9.2.2"},"gitHead":"da9452a20ac32f586f3e96301ed0969276f3a2c2","_id":"@brettg17/lotide@1.1.1","_nodeVersion":"12.18.4","_npmVersion":"6.14.6","dist":{"integrity":"sha512-efG1mFkCZr8RxzkGlOp1TPgTw/vKsCemsJYAsNUDMvH/HHZHNlKV58qnSpLSpW/2FXKJIq5coPnpRxg/coddlg==","shasum":"3a35e426a6f2c20624dee805f20ae392e491a521","tarball":"https://registry.npmjs.org/@brettg17/lotide/-/lotide-1.1.1.tgz","fileCount":26,"unpackedSize":25938,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIH5lO7rJCbfPaDUHrYUxgKN/WkMJDgybThaswV7DE2kvAiA5kuuGTXB+eVxVDnyN7LdT+xlrvqJBWTBIPJb25WW/VQ=="}]},"_npmUser":{"name":"brettg17","email":"brettgelinas7@gmail.com"},"maintainers":[{"name":"brettg17","email":"brettgelinas7@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.1.1_1708807254255_0.2792058778252915"},"_hasShrinkwrap":false}},"time":{"created":"2024-02-16T18:52:55.459Z","1.0.0":"2024-02-16T18:52:55.713Z","modified":"2024-02-24T20:40:55.267Z","1.1.1":"2024-02-24T20:40:54.425Z"},"maintainers":[{"name":"brettg17","email":"brettgelinas7@gmail.com"}],"description":"Lighthouse Labs Lotide Project","homepage":"https://github.com/brettg17/lotide#readme","repository":{"type":"git","url":"git+https://github.com/brettg17/lotide.git"},"bugs":{"url":"https://github.com/brettg17/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 @brettg17/lotide`\n\n**Require it:**\n\n`const _ = require('@brettg17/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* `assertArraysEqual(actual, expected)`: tests whether two arrays are equal or not \n* `assertEqual(actual, expected)`: tests if a functions actual return is equal to the expected\n* `assertObjectEqual(actual, expected)`: test whether two objects are equal\n* `countLetters(chars)`: counts letters in a string\n* `countOnly(allItems, itemsToCount)`: checks how many times and item is in an array. returns undefined if not\n* `eqArrays(arrayOne, arrayTwo)`: tests to see if two arrays are equal \n* `eqObjects(object1, object2)`: tests to see if keys and values in an object are equal\n* `findKey(obj, callback)`: uses callback and returns true if truthy value is meant. if not return undefined\n* `findKeyByValue(genre, show)`: finds key by value. if value/key is not in the object return undefined\n* `countOnly(allItems, itemsToCount)`: checks how many times and item is in an array. returns undefined if not\n* `flatten(arr)`: takes an array with elements that include nested arrays. removes nested arrays creating a \"flattened\" array\n* `head(arr)`: returns first element of an array\n* `letterPositions(sentence)`: returns what position letters in a string are in.\n* `map(array, callback)`: map function returns an array based on the reults of the callback function\n* `middle(array)`: returns middle element of an array. middle two elements of even. empty array if two elements or less \n* `tail(arr)`: creates new array exluding first element in original array\n* `takeUntil(array, callback)`: return elements in an array up to the point truthy condition is met.\n* `without(source, itemsToRemove)`: whatever elements that are in first array but not in second will get pushed into new array.","readmeFilename":"README.md","author":{"name":"Brett Gelinas"}}