{"_id":"@aidanmattrick/lotide","_rev":"1-6172a8a0815adbc85faaef7af398d5c7","name":"@aidanmattrick/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aidanmattrick/lotide","version":"1.0.0","description":"A copy of lodash library for learning purposes","main":"assertArraysEqual.js","directories":{"test":"test"},"dependencies":{"chai":"^4.2.0"},"devDependencies":{"mocha":"^6.1.4"},"scripts":{"test":"mocha"},"author":{"name":"Aidan Mattrick"},"license":"ISC","_id":"@aidanmattrick/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.9.2","dist":{"integrity":"sha512-qrzIrKhkJKI2m7twvfnx/lPx3eaaghVpymUkto+RORlQaKESPlSzaX0SXguOmXeIjUpnSbf7iyrFerTJKZ50pQ==","shasum":"f6c3bc595d50eb3753e3c50616fab5986e481176","tarball":"https://registry.npmjs.org/@aidanmattrick/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":18185,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdGppCCRA9TVsSAnZWagAAjnYP/1PI9sL5T6cMtzbz/4V7\nCI3G3l5JzUbJmxuXNOAlpdI7ObDvLnzDTOwJ8JckLyGxal5N8xoF57n1LCBB\ntCIkvmql7FtqCwxp7AFNoyS9czDn1PDC6zErRF8d0oZT+03A8DmiwM7z3PaJ\ngvBQ/YHAcrtfYJWspCBimzhAqQhKjqjmacfkrq/xJqgdnNefUxzb+wB8Dp1r\nSl168yJHkN0T4pBtzbrNP+1jnWMin/buHY4faTQR5UK5/kx5JKT3eY3vw5mu\n84tKJQKfIytAJBsZ0h2Pbo0r9fa8jxiCUVFXtL8+juYlj1f682z7Yd9A3n0i\nGmU5ZglN0WQKSDaPEY0IIf6Wdouhd5qsH3duHhDWss2GqaXmFYH9cTZZGt14\ntS9srXDgI8VW1XwfbbgfOWUqyeLKZOk8c74x6md59UfeiMmQVAzFPBk1l9Rk\n3eZChIVjTVoQ9BED7jWOkP7yivNXEhbpxULYlBWY2IljnYY801dDxb1Fo/hT\nRlsawunDixVPFsRK7akPllMJEI/eP3ANRWqaazmzTh2PcJQzC01BnmowqwWq\nLWY4RhGdthnxfNx4geUNY68NMX3oXRBGgUpqDClNM2w/JX3B771mLojkixIz\nN/61y5inDF2ZEW6lLGXzuenYhaztviehnpCtoI0YHN0ud5qL3toJRaup++xg\nNo99\r\n=hEYl\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCzG2lF/DHFx5C3k5lG1BJFUVKBaCq8ttWRTZ+XRSFPAgIgaf6GzDazrW0r1obbeRbJUBy+Lmthwe3gWJWF++c7zq8="}]},"maintainers":[{"name":"aidanmattrick","email":"aidan.mattrick@gmail.com"}],"_npmUser":{"name":"aidanmattrick","email":"aidan.mattrick@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1562024514325_0.13388175066702224"},"_hasShrinkwrap":false}},"time":{"created":"2019-07-01T23:41:54.109Z","1.0.0":"2019-07-01T23:41:54.424Z","modified":"2022-04-04T12:16:26.257Z"},"maintainers":[{"name":"aidanmattrick","email":"aidan.mattrick@gmail.com"}],"description":"A copy of lodash library for learning purposes","author":{"name":"Aidan Mattrick"},"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 @username/lotide`\n\n**Require it:**\n\n`const _ = require('@aidanmattrick/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(array1, array2)`: compares two arrays and returns if their values are equal\n* `assertEqual(acutal, expected`: compares two values and returns if they are equal\n* `assertObjectsEqual(obj1, obj2)`: compares two objects and returns if their keys and values are equal\n* `countLetters(str)`: receives a string and returns the frequency of each character used in the string\n* `countOnly(key, obj)`: takes in an object and returns the number of times that a given key occurs\n* `eqArrays(array1, array2)`: takes in two arrays and returns if their values are equal\n* `eqObjects(obj1, obj2)`: compares two objects and returns if their keys and values are equal\n* `findKeys(obj, callback)`: takes in an object and returns the first key for which the callback returns a truthy value\n* `findKeyByValue(obj, callback)`: takes in an object and returns the first key for which the callback returns a truthy value\n* `flatten(array)`: takes in a nested array and returns a single array with list of values\n* `head(array)`: takes in an array and returns the first element of that array\n* `letterPositions(str)`: takes in a string and returns an object that displays each character used and the number of times it was used as key-value pairs\n* `map(array)`: takes in an array and a callback and returns a new array with each element having been manipulated according to the callback function\n* `middle(array)`: takes in an array and returns the middle element of that array. If there is an even number of elements, it returns the two middle values\n* `tail(array)`: takes in a array and returns a new array indentical to the original array besides removing the first element\n* `takeUntil(array, callback)`: takes in an array and returns a new array that copies the values of the original array with the callback function determining the endpoint of the returned array\n* `without(array1, array2)`: takes in two arrays and removes all the elements in array1 that also occur in array2 before returning a copy of array1 \n","readmeFilename":"README.md"}