{"_id":"@bernadetteroseabalos/lotide","_rev":"2-a0607cf719cc31681a5cff95acda39be","name":"@bernadetteroseabalos/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@bernadetteroseabalos/lotide","version":"1.0.0","description":"Lotide: A mini clone of the [Lodash](https://lodash.com) library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/bernadetteabalos/lotide.git"},"author":{"name":"Bernadette Abalos","email":"bernroseabalos@gmail.com","url":"https://github.com/bernadetteabalos"},"license":"ISC","bugs":{"url":"https://github.com/bernadetteabalos/lotide/issues"},"homepage":"https://github.com/bernadetteabalos/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"dependencies":{"my-package":"0.0.0"},"gitHead":"f314aee81b42a2b69bd933abb96271c60fe813e8","_id":"@bernadetteroseabalos/lotide@1.0.0","_nodeVersion":"12.22.2","_npmVersion":"6.14.13","dist":{"integrity":"sha512-9Z+qM9kpPSVRKUaX5J6NMja+6j1R0SMvGMPYsC5ySTlAK8nzrOFJf8T3R1vYMzu41FPmr8z/Mo2PZFNr2xTwUA==","shasum":"47d32d2c093a27fd64f945282e0f29b0c7e167c0","tarball":"https://registry.npmjs.org/@bernadetteroseabalos/lotide/-/lotide-1.0.0.tgz","fileCount":28,"unpackedSize":31362,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzHkvCRA9TVsSAnZWagAAvC4P+wWzHxj4+gK6zEcpGHgB\nGYqYnjpLUa7YhJ9ciH8QRIOWL6SjOqajJYh2jH6PNKgMmDpTpjYrWxEyJVtU\no8bXqcAtczodu1hsRZDt6pgzloKjCjzoSKrX5VNq/HLPt98ny4Hku3m7BHiW\nlqsRQHEDtgnlvutTkCSNJ0ak2c7Gj11zfc9DjXc9YEu2cSa1DesO5ASyGiej\nMVlwTao7uJYwNlzV630XXjrS7bkqHXkKpJ3wus0YL6NaMs3T4KdPiZc4Pg0f\nHETK34xDeXREHaOEnLc9E8ZDUmRmCWbP1NTaqsl2sTt0CwCp5ec+SpcPQfEA\nETnCq35YmUOhYO8/YWYX45bu43ZRWqwACAU0F/kgDq3ecvM3vEYEqyVcf7eS\nViIEKXQuh3kgenvflGECcaOOkF+vOmSyyJWwZRbelvmyUDTCczo3D0RelJJm\nan/M0oploGq6KVevlx7zR3+AKPVA2UyW5E2FUaFBF2SUW2TkcaD+B92EGqLW\nRBgBvGNq3aTGTcVvvO7aDOM+3iJbna4CMvuvJkCfuXUljWSlNJ0iprL/2/8L\nNiWl46rmIUhsJfBmB03yNtlfdhn2vR2kYeUBE9mwUj3fROyKS8dFZChjJHlg\nDUzgTyKOkzohUOT7e/vHZMmockKcfTHgC/eKp8d+nNwT82ftXfE6ZD1UfW4B\nhZAR\r\n=QjsP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIB1TRdH77ZDl3DbZqUxeXXTgJ8kdYv/ORuADubstjV9VAiBV0SWqSOFD06FONabY/tqXIIZ2xtdcpujCRwqcJ1wFFg=="}]},"_npmUser":{"name":"bernadetteroseabalos","email":"bern.roseabalos@gmail.com"},"maintainers":[{"name":"bernadetteroseabalos","email":"bern.roseabalos@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1635810719177_0.6556948405460787"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-01T23:51:59.131Z","1.0.0":"2021-11-01T23:51:59.291Z","modified":"2022-04-04T18:31:43.770Z"},"maintainers":[{"name":"bernadetteroseabalos","email":"bern.roseabalos@gmail.com"}],"description":"Lotide: A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/bernadetteabalos/lotide#readme","repository":{"type":"git","url":"git+https://github.com/bernadetteabalos/lotide.git"},"author":{"name":"Bernadette Abalos","email":"bernroseabalos@gmail.com","url":"https://github.com/bernadetteabalos"},"bugs":{"url":"https://github.com/bernadetteabalos/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 @bernadetteroseabalos/lotide`\n\n**Require it:**\n\n`const _ = require('@bernadetteroseabalos/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(arrayOne, arrayTwo)`: Compares two arrays. Assertion test passed if they are equal, failed if not equal. \n* `assertEqual(actual, expected)`: Compares two primitive values and asserts true if they are the same. \n* `assertObjectsEqual(object1, object2)`: Compares two objects and asserts true if they are the same.\n* `countLetters(sentence)`: Takes in a sentence and returns count of each of the letters in the sentence.\n* `countOnly(allItems, itemsToCount)`: Takes in a collection of items (allItems) and returns a specific subset of those items (itemsToCount).\n* `eqArrays(arrayOne, arrayTwo)`: Compares two arrays and returns true if arrays are equal.\n* `eqObjects(object1, object2)`: Compares two objects and returns true if they are equal.\n* `findKey(object, callback)`: Takes in an object and a callback. Scans the object and returns the first key for which the callback returns a truthy value. If no key is found, returns undefined.\n* `findKeyByValue(object, value)`: Takes in an object and a value. Scans object and returns first key which contains the given value. If no key with that given value is found, returns undefined.\n* `flatten(arrayOne, arrayTwo)`: Takes in an array containing nested arrays as elements and flattens them into one array.\n* `head(array)`: Takes in an array and returns first item in the array.\n* `letterPositions(sentence)`: Takes in a sentence and returns indices of letters in the string.\n* `map(array, callback)`: Takes in an array and callback and returns new array based on callback function. Callback function is applied to all elements in the array.\n* `middle(array)`: Takes in an array and returns middle element.\n* `tail(array)`: Takes in array and returns everything but the first element in the array (tail).\n* `takeUntil(array, callback)`: Takes in an array and callback and returns sliced version of array. Will keep collecting items from provided array until callback returns truthy value.\n* `without(source, itemsToRemove)`: Takes in source array and removes items in the array (itemsToRemove). \n\n","readmeFilename":"README.md"}