{"_id":"@daraakitoye/lotide","_rev":"2-f32a11e4018a9af7d6ada1448eb5a497","name":"@daraakitoye/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@daraakitoye/lotide","version":"1.0.0","description":"Lodash clone","main":"assertEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/daraakitoye/lotide.git"},"author":{"name":"Dara Akitoye","url":"https://github.com/daraakitoye"},"license":"ISC","bugs":{"url":"https://github.com/daraakitoye/lotide/issues"},"homepage":"https://github.com/daraakitoye/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.0.3"},"dependencies":{"lotide":"^1.0.1"},"gitHead":"3d4be5a453022d09add2eea74208a430eacfb38a","_id":"@daraakitoye/lotide@1.0.0","_nodeVersion":"12.19.0","_npmVersion":"7.20.5","dist":{"integrity":"sha512-VnfxkZ2AL7G713uBEHXc+4tR8FUo4D+iw6tdC9jQb+Q9uMm0ZeAncp5s+74nhDT71A1r7UTWSQHif5Nw6vhTTw==","shasum":"f2b2e20a3e6046f5334d40691ace0a595d7a2dce","tarball":"https://registry.npmjs.org/@daraakitoye/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":15536,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhFlTsCRA9TVsSAnZWagAAW00P/j/kna3ps8QgZ/qxtdNg\npXgIFTOZTdFSeBrMP4037b9PAl7q8vZVMt2+njpY/TNmB1QIE6OM42NcJfoX\nEUjxFVML5ZFHnbTIXH7iGwhkgoDBDMs8WgrKrc8/yWHvPqHdw7ZV9NfT5KIz\nKuoDH/29ALfkV0l5qNXe9J+DZDL1DgEcx3Opw2WgzIFJHWAVJ8H7RZ59B8Mf\ngYVb2qHifGlX5iExKZVBzLkwY4e8ERWc5wT+EgLEa5jBSTeh6mSpR2X1k/UR\nplSs4uS5sZoXafKElbOqiqcacy/NLro4lPmFG1n+Ds+RJl0NxEIngEUHckWT\nBKGlNDOFD04nBeWFS39Y9ToPj6ANqCfc4+RXjzwitlOr6x7dRy/vmBzfggPm\nKfEdRv+cnFYOomd3Aa/Q0lpgnZuxijUAs6ZQr4fCq9HPr9FenGfHWW/UP8M2\nhYKky2ap+rZZuJRbeMlDCdqIjaTVrtULZUBxLslT5q7K4HBYhTNpyACNgnXl\nNbS1hDFlnmLWf+SoZDg/r77s4DsXyJRAmiSniKJfIC03DjUAThBH7RQoh3Ue\npIWFpY3q6qp7n7oVbbphSDcTNCQUu34hhCe86xZrVte6/3/HlqwI6wonGCte\nw1rj5aNU6Qh/YXVew9G06mxxkxdu8fUQQvCvI0+LHXMjO28o2fReHa4xT8SZ\nQggz\r\n=96H5\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCICsJSB7M9qkGhHhjKtPM9mgAIEBewd6pGG6mH70dyfLNAiEAz/POnd4oEL58JPkVS64zqlP+LHoD6QqOTjGW67Aktys="}]},"_npmUser":{"name":"daraakitoye","email":"daraakitoye1@gmail.com"},"maintainers":[{"name":"daraakitoye","email":"daraakitoye1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1628853484781_0.7450615989318106"},"_hasShrinkwrap":false},"1.0.1":{"name":"@daraakitoye/lotide","version":"1.0.1","description":"Lodash clone","main":"assertEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/daraakitoye/lotide.git"},"author":{"name":"Dara Akitoye","url":"https://github.com/daraakitoye"},"license":"ISC","bugs":{"url":"https://github.com/daraakitoye/lotide/issues"},"homepage":"https://github.com/daraakitoye/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.0.3"},"dependencies":{"lotide":"^1.0.1"},"gitHead":"0ba67c276573f9f11cc970b415b5f6cb8887988c","_id":"@daraakitoye/lotide@1.0.1","_nodeVersion":"12.19.0","_npmVersion":"7.20.5","dist":{"integrity":"sha512-H+ePuZLp/ZgCVwbzt1uiVbX5wAxsV5C3usiw6VYY8WxfCmDX3gf+9s0oyQRKSlnDms5gtx3G1IZem2BPGI5bKw==","shasum":"c0223c0be38e58ad188acabad557b9b852a3a2a7","tarball":"https://registry.npmjs.org/@daraakitoye/lotide/-/lotide-1.0.1.tgz","fileCount":26,"unpackedSize":15624,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhGKuuCRA9TVsSAnZWagAAtukP/jsaC6iSni9AYNJckRpU\nw1CjbREdye+xh/xAKTaBQrGTAFn3kQXKhM9xDNvI2UShJcsltPGy5/v422Hx\n3HoUiZkb5POdP/DrLn4C72dVtRlfxBN7PJWehYRfZrUrMMGTrsweGyZFG8hA\nLW5YAE8i20Pl05K/Z5jWsbMDs+aHH/HWz1hpK5pSbiLbvWFbLGdXwrRkmVoR\nC2v68WwwHBf6wGBbpVMwJ+3pGns6a6z5b1zA7ZQMzoEo2vbm5YGegvqX1now\n7pD2awXfWKNb8uEaFo+HcO4ztPuJXaiVHkmfgExnWmP1kEsktVSGIF13ATK6\n2Y6R/3pGxtopZ/vRew9fPhR6/WfF2X6NKc24ChsCz5RNDEE3S3JMTIUsMmbV\np4xPBl+4n2LQyg4RunArGIuihOB4Q1YInfoEsATSQgaPpUz9/+r8nigYM20q\ndky9Tjd14JqPcqHMWa3nWTKsltzKxxMhY1rYsSRT5lIn7liXZ1tbgZQ9M8oR\nji4XtXF+pPb2S6hR8EpwVt+HgGEhpyEq+QunP8hNQthD57c7lRiHkUPida8f\nP4GsP1DVNC5xhOFQ/f6fmybNaaKMd6a+Wume54sTejGNGKQjJlaP0aB+VRrH\nKdXwfpmICRIBZdegY51BLT3AKpjs6ZYbDg+W0BN0e0qWSK5u7t0uHgotuwwR\nnw15\r\n=9mFx\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIGYfTiiDm8p0r/NEYMcZtBLdyV509QchzkvDrZBYXTxDAiEAx8k7iSSHDcWkrfg7sbxT+6+jGIWHtPVs33JWXx0OWO8="}]},"_npmUser":{"name":"daraakitoye","email":"daraakitoye1@gmail.com"},"maintainers":[{"name":"daraakitoye","email":"daraakitoye1@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1629006766465_0.24098645093358573"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-13T11:18:04.719Z","1.0.0":"2021-08-13T11:18:04.931Z","modified":"2022-04-05T02:44:21.757Z","1.0.1":"2021-08-15T05:52:46.607Z"},"maintainers":[{"name":"daraakitoye","email":"daraakitoye1@gmail.com"}],"description":"Lodash clone","homepage":"https://github.com/daraakitoye/lotide#readme","repository":{"type":"git","url":"git+https://github.com/daraakitoye/lotide.git"},"author":{"name":"Dara Akitoye","url":"https://github.com/daraakitoye"},"bugs":{"url":"https://github.com/daraakitoye/lotide/issues"},"license":"ISC","readme":"A 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 @daraakitoye/lotide`\n\n**Require it:**\n\n`const _ = require('@daraakitoye/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(arrOne, arrTwo)`: Takes in two arrays and logs an appropriate message to the console depending on whether or not they are a perfect match.\n\n* `assertEqaul(actual, expected)`: Compares the two values it takes in and  print   out a message telling if they match or not.\n\n* `assertObjectsEqual(actual, expected)`: which will take in two objects and logs an appropriate message to the console depending on whether or not they are a perfect match.\n\n* `countLetters(string)`: Takes in a sentence (as a string) and then return a count of each of the letters in that sentence.\n\n* `countOnly(allItemsArr, itemsToCountObj)`: countOnly will be given an array and an object. It will return an object containing counts of everything that the input object listed.\n\n* `eqArrays(arrOne, arrTwo)`: Takes in two arrays and returns true or false, based on a perfect match.\n\n* `eqObjects(obj1, obj2)`: Will take in two objects and returns true or false, based on a perfect match.\n\n* `findKey(obj, callback)`: Takes in an object and a callback. It should scan the object and return the first key for which the callback returns a truthy value. If no key is found, then it should return undefined.\n\n* `findKeyByValue(obj, value)`: Searches for a key on an object where its value matches a given value.\n\n* `flatten(array)`: Takes in an array containing elements including nested arrays of elements, and return a \"flattened\" version of the array.\n\n* `head(array)`: A function which returns the first item in the array.\n\n* `letterPositions(string)` : Returns all the indices (zero-based positions) in the string where each character is found.\n\n* `map(array, callback)`: Takes an array to map, a callback function, and will return a new array based on the results of the callback function.\n\n* `middle(array)`: Takes in an array and return the middle-most element(s) of the given array.\n\n* `tail(array)`: Returns the \"tail\" of an array: everything except for the first item of the provided array.\n\n* `takeUntil(array, callback)`: Will keep collecting items from a provided array until the callback provided returns a truthy value.\n\n* `without(sourceArr, unwantedElem)`: Returns a subset of a given array, removing unwanted elements.\n\n","readmeFilename":"README.md"}