{"_id":"@cmacdougall12/lotide","_rev":"2-d3065898520dd5e400f19189654559b5","name":"@cmacdougall12/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@cmacdougall12/lotide","version":"1.0.0","description":"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/cmacdougall12/lotide.git"},"author":{"name":"Cameron MacDougall"},"license":"ISC","bugs":{"url":"https://github.com/cmacdougall12/lotide/issues"},"homepage":"https://github.com/cmacdougall12/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^8.4.0"},"gitHead":"d91af78c169d1e50e111398f74d99997d1f348b4","_id":"@cmacdougall12/lotide@1.0.0","_nodeVersion":"12.22.1","_npmVersion":"7.15.0","dist":{"integrity":"sha512-QnoOm9T3jw42sPn8B6B62FMt3yIUvWupzNQAXdG0CbZdjrgvIw8VYCCh7jyk/5muDW4aDD0rrt5tMEEQ+yU/sg==","shasum":"d4517bed0d0bccd405efac4935db9abba10dfe6a","tarball":"https://registry.npmjs.org/@cmacdougall12/lotide/-/lotide-1.0.0.tgz","fileCount":37,"unpackedSize":24243,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgtWjPCRA9TVsSAnZWagAAVokP/3GpxCIFTv6e+RA+/xvK\na35S/nQ2R2ZoErVnLcs+e9YClr1uokdAQ7y+DpQI4FF+XMXrMJ4qDnPWUP6G\nxmdCbNkIWqPBY3si8WWaJCC/j8wf5hVoweinVFsDQLypvGrLwr+f5jASGPwI\nglu+z4ouLxZEFH5SiaYWwzKFBF9ZcBIACoo+qO48x17DS+jFMgJ/zbHVlloe\nUq+3DhgK0lcjeADCBFKCLoT7+tFFGJWER9wrDzTOG62FMKGFBUWYJYz7kE0p\nK28TUmrNHW6rimikCzJwvUAEBuv/hVzK5W+yuRDaoDx08+CHNo0h7aZdN37k\nbaxkfDYziDY1Oj+51EnAf4AT1wyjxGYrxrPvIwwh3hOCE+43r9/ShIZc2JQF\nhqrkgdmg+wPz3e/MFBdCvcBSdGwD80yv1T46M4inCN+CCiTIbLNEGN7bYVID\n9YoxP63xpHuom7dmN9cw0f5+DfA4Q5prer72lwsGvqC/Brc3l9gc65jc3j0J\naYdjFakeUde8eeMFB1rL1WbxLbeJIO3BP2sHJNZ8FQl3fRADGIvkLYwEtjf1\n1IGMtr/eQsP6r6wWbfR8GhU2se0dheJR1CuNMZp7RmG2j3KJXm7oPE3kKpyO\n4Ckm2dal99LVvMg3ZSkpZ0YwitfowMi3GRJErSK5nWjzRDmgOCKyOLj6IDT3\nLbZB\r\n=W0lA\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDW6SkUUm6fEtY4FaaiHQYaZc/acDAuIHJZm/KQXzdzcwIgdntu2OyHYAO0f/ofss1R2L44hQY12bgbQSANZzoizsA="}]},"_npmUser":{"name":"cmacdougall12","email":"cammacdougall12@gmail.com"},"maintainers":[{"name":"cmacdougall12","email":"cammacdougall12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1622501583327_0.815505556172047"},"_hasShrinkwrap":false},"1.0.1":{"name":"@cmacdougall12/lotide","version":"1.0.1","description":"A mini clone of the [Lodash](https://lodash.com) library. Version 1.0.1 has updated eqArrays and eqObjects to deal with nested arrays and objects respectively by using recursion","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/cmacdougall12/lotide.git"},"author":{"name":"Cameron MacDougall"},"license":"ISC","bugs":{"url":"https://github.com/cmacdougall12/lotide/issues"},"homepage":"https://github.com/cmacdougall12/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^8.4.0"},"gitHead":"23ca00953521f68535b1585e33272cf07ea8ccad","_id":"@cmacdougall12/lotide@1.0.1","_nodeVersion":"12.22.1","_npmVersion":"7.15.0","dist":{"integrity":"sha512-7bo67oNNkXXxjCOZmBcjM+7jiUthSpZtyc7vHi4E4NvqED4WryQJ2a1nAe1ZBgVohSz0COc/DL3aOnEy4Q+k9Q==","shasum":"08a77c29118e5c3515f2b777b2b91bd2140d669b","tarball":"https://registry.npmjs.org/@cmacdougall12/lotide/-/lotide-1.0.1.tgz","fileCount":37,"unpackedSize":25131,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJgt7ZNCRA9TVsSAnZWagAAAPYP/RiNgzWyfhCuWgXmsRzG\nrGYsoFDDJQXL4IqGaG1Cv2agBCegu/CTEHRi/bs3X+kfgyMA7y9oUCbcA4Ns\n7ojqo1joc5lBEHoKVBHMIi4SvQX51++Kg8xhogcZ3lgWpRSZB5WNlcTuf65g\nCNvLPfktU3f8y7FhMbY3/pOJJshxwNPeX9krW/zDmYQhsqcPK11nuvA9bjVP\nDrrGIhfPrfJNpmFYHskMmZkSZRK+9mVUi6mkYepoPwV4Tfzjnda0aByLyE6w\nafx4O5DQzzC4rNhio2+ows0jkyctfvJ6cDGRvFblji6HrRnnkPcfrwzUv8sx\nBZOpx1fJNIY9IDBdYDP/8j6aQOgUfCqqoksC9uiZozUffidJls3YvLfcgw0o\neJT57+FUn7Ugv0LVqwn7erfeibX0raAzJYlTpA3AZHGcM51nAN40l8OBXrSM\nlgsZBHT2lwP0c5KOhtf4YAYxkl8dTRZIHQeszv7BdzpHnL0zUwu55ohZiMd0\nnk5BWYfTP/zUhkTtbgfglYqzt5bneD0kcccrPZ8VgXbzELUzjhtv0isAHsjB\nNpxRQSbthp3KVz1kByHDYzy8DgVlY63yH7W5VunrD+2WTbGkODBPH88mVHoo\nnVTxZMAHO0SBCnFhGJv+p/YEZdruW6lSimQh+HU/PRD8sznU0JpP4I6CTmWF\njqr8\r\n=MhiV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHWG+hl+gpgMMCL8PYzajPElEmgC1pI6j2q3idb4yb8FAiAiYXGh1r+Rm2ll9w6fAGbWo8a7oAxVw+XMYYRYdFWvLw=="}]},"_npmUser":{"name":"cmacdougall12","email":"cammacdougall12@gmail.com"},"maintainers":[{"name":"cmacdougall12","email":"cammacdougall12@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1622652493704_0.5916702819247133"},"_hasShrinkwrap":false}},"time":{"created":"2021-05-31T22:53:03.283Z","1.0.0":"2021-05-31T22:53:03.485Z","modified":"2022-04-04T23:42:56.847Z","1.0.1":"2021-06-02T16:48:13.818Z"},"maintainers":[{"name":"cmacdougall12","email":"cammacdougall12@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library. Version 1.0.1 has updated eqArrays and eqObjects to deal with nested arrays and objects respectively by using recursion","homepage":"https://github.com/cmacdougall12/lotide#readme","repository":{"type":"git","url":"git+https://github.com/cmacdougall12/lotide.git"},"author":{"name":"Cameron MacDougall"},"bugs":{"url":"https://github.com/cmacdougall12/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 @cmacdougall12/lotide`\n\n**Require it:**\n\n`const _ = require('@username/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(arr1, arr2)`: asserts equivalence between two arrays. (arr1, arr2)\n* `assertObjectsEqual(obj1,obj2)`: asserts equivalence between two objects. (obj1, obj2)\n* `assertEqual(x,y)`: asserts equivalence between two primitive object types. (ie. true, true)\n* `countLetters(string)`: determines how many times each letter appears in a given string. Output is an object, with a key for each letter and a value that equals\n* `countOnly(allItems, itemsToCount)`: function will take an array of allItems and return a object counting the number of times each key in the given itemToCount object appears. \n* `eqArrays(arr1,arr2)`: checks equivalence between two arrays. (arr1, arr2)\n* `eqObjects(obj1, obj 2)`:checks equivalence between two objects. (obj1, obj2)\n* `findKey(obj, callback)`: scan object and return the first key for which the callback returns true\n* `findKeyByValue(obj, valueToFind)`: will return the first key that has the valueToFind contained in given object. \n* `flatten(array)`: will flatten a given array with nested array\n* `head(arrau)`: will find the head of an array.\n* `letterPositions(obj, valueToFind)`: \n* `map(array, callback)`: implementation of the built in map function\n* `middle(array)`: function will retrieve middle elements of a given array. If length of array is even, output will be an 2 element array . If length of array is odd, output will be 1 element. \n* `tail(array)`: finds the tail of an array\n* `takeUntil(array, callback)`: will output the given array until the callback function condition is evaluated to true. If the condition is never evaluted to true the given array will be the output.\n* `without(array, removeElement)`: will output an array with all elements that equal the removeElement value.\n","readmeFilename":"README.md"}