{"_id":"@ahladun/lotide","_rev":"2-399e9e1ca438b126fc06a8b225a55371","name":"@ahladun/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@ahladun/lotide","version":"1.0.0","description":"A mini clone of the lodash (lodash.com) library.","main":"index.js","directories":{"test":"test"},"dependencies":{"chai":"^4.2.0"},"devDependencies":{"mocha":"^7.2.0"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alex-hladun/lotide.git"},"author":{"name":"@ahladun"},"license":"ISC","bugs":{"url":"https://github.com/alex-hladun/lotide/issues"},"homepage":"https://github.com/alex-hladun/lotide#readme","gitHead":"f62f4fa38b88e1718b170c88ee71c0f3211b8cf8","_id":"@ahladun/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.14.5","dist":{"integrity":"sha512-LUCkNjsty2TVP2Zpy2kDMmApYYQs/PgRY5FwujyWm8AzuG+QtycwhN06TAh03Y3cQRd4BSr20w9kcQiGA/jM+Q==","shasum":"1fc55d7b050eb62b101e43573974ffc6c491699a","tarball":"https://registry.npmjs.org/@ahladun/lotide/-/lotide-1.0.0.tgz","fileCount":28,"unpackedSize":17892,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1YAxCRA9TVsSAnZWagAA2mIP/1rrYJlvCI8pUeb5DIaP\nNjo9pSe89OIbYN18A2zliOVG+t0GhoetkytYyWA6JHoCLZ5rxGMGU3ExDhre\n4cX+E0I6k1Xt07dAL6mK5iP8hel3ZAd+9PW/rLfcjFQQp8zDVTVr+UGGEtEB\nzAX0WGKLXAK2BmWe7kmxVn6y94TSsJFWEuWLpTZDB7/fTBtCXQ8gsLAuFh6H\nKl/Gghhvzb674NIJ7dxqtP0vaJVTjnb6WK0/LddVL8KGb26A8pSLRNfDUhzf\n1w7Y/lMIU8iegvdGXlJsuLE6jYHRvrLN0IotYScp8kUP9De8VuChuDUAxj7N\nB67mf97UhFvHr3fxYxtHqurmwJgauLiK7Ks9xtl+rcfZWNJvzlVNmsE4eH9I\nPripdVc6FoZONqMDANeO13uWfY/rE8O0O+TcSR0QdOkyYrq4olD9whI1O4h8\n1kH+y+H0qN/BSYRUO+E6XOPGxbT0xsKHkTTN4EXzD7pDbwhpHEctahA0StGx\nUgpK4pr5aYe+0OhDcTFaQwkWolUQ1N1oJMK0w+TLal7O8eaNUBUFSYTjaWPG\n4bxbFuhjtvip6aUBqaAKmuyWJ7wiQCNI2Cb0BPyUyAT8yBhHibsZlD9nfR4q\nYKMhLR7VhmGMc5DBYaBRRZ9DUKGQtj8aabXarF8X7EPPBl9Dxu3gbg4I/Uuc\nZctY\r\n=0Bnu\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQCZ7seiOqojqWzzSWESVSjejyqdJL2zYOHoOVgsTxf1lwIhAJatjyyb8VN0T6WnpBNx8SVr9w7x03bkvRpVYpLoGpci"}]},"maintainers":[{"name":"ahladun","email":"alexhladun@gmail.com"}],"_npmUser":{"name":"ahladun","email":"alexhladun@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1591050288691_0.2326406543884758"},"_hasShrinkwrap":false},"1.0.1":{"name":"@ahladun/lotide","version":"1.0.1","description":"A mini clone of the lodash (lodash.com) library.","main":"index.js","directories":{"test":"test"},"dependencies":{"chai":"^4.2.0"},"devDependencies":{"mocha":"^7.2.0"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/alex-hladun/lotide.git"},"author":{"name":"@ahladun"},"license":"ISC","bugs":{"url":"https://github.com/alex-hladun/lotide/issues"},"homepage":"https://github.com/alex-hladun/lotide#readme","gitHead":"2b103107ad983e2183d4f720d59494c1c7af4224","_id":"@ahladun/lotide@1.0.1","_nodeVersion":"8.9.4","_npmVersion":"6.14.5","dist":{"integrity":"sha512-anp+UuI+XiBuKRNZgzPbh7Eg9kQKXxLP/kSeQn9QHrYMp3N1F68a7vzlRz2RZHVFDPkZjKjv2ipVhJs8WEClrg==","shasum":"0830188dbc72f2229ea2319b74edadd7307d00e7","tarball":"https://registry.npmjs.org/@ahladun/lotide/-/lotide-1.0.1.tgz","fileCount":28,"unpackedSize":18096,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJe1auiCRA9TVsSAnZWagAAmsgP/1tdMcfcSTSZ9muCYW8F\n+dlQSFUjUij9j30A62mdh7LSkdEw7KnP2VbJZaZg7cEZ3UK/pax8j3duZ6bK\nN1yREnpzWeFn3DquG5f0YYi4jtYw8J337xmFMDbX9q3wGTCCPeV3oL6NmeDD\ntIkjKNKE16yUgF54/72zam9JE95noyNb0bv/bmHgG1cBbh4rE7IeDuPuitK/\n65p9hxuJjN5QQ2UiU8z6rpvfI+3rcRHcaJUmA9F3yHCgogN4I4GYTR1CMDvN\nEtJsf8uXrjAw2Lk97GjwwIn3mcwDr4zQH0oXrIv7OFjGYp4II63M4yD4tx5b\nk3vESECk2I+pBfXtWjDtPrJgcbff+JHNPrSWslIwC5FRo3qtprqoaUCJAElZ\najqhva36a3okyeBUX3usEbm92esJ2k4wfZr8kpP9aib0yWYsYhArlU0gelMj\nyZSf/hQs/+tNEPPdOZ2pdoirzMjVIzYeh5qgmGdkVwKmLIvkLMX9rigaGEKy\nlksQ0z9JjqrEE1kJkMihKMLZiLlcQR4OxJYJwXfFEwL8tWC6qI8DLATcrPjq\nuAOFbpmmTKoYbpwuBlLxH6Bdx043lD06L2x3FtZiDlmfCEcscD1jdRqwOTIE\nDnS6XpWZxb38q65LFZa4RqyaekTwDLYCmd1MHa8bi+Dg4/WJk+jCHhdNMKef\nuLPs\r\n=FIgt\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCpF3BGoX1q28ieuXCQ0f46LO+Togir5gpt4d458u/tdAIgcpNax21tc8HHkE5lU4e1+DVIl9NtslUYexkwf1+JAL8="}]},"maintainers":[{"name":"ahladun","email":"alexhladun@gmail.com"}],"_npmUser":{"name":"ahladun","email":"alexhladun@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1591061409886_0.5901117218007035"},"_hasShrinkwrap":false}},"time":{"created":"2020-06-01T22:24:48.655Z","1.0.0":"2020-06-01T22:24:48.864Z","modified":"2022-04-04T12:12:21.611Z","1.0.1":"2020-06-02T01:30:09.999Z"},"maintainers":[{"name":"ahladun","email":"alexhladun@gmail.com"}],"description":"A mini clone of the lodash (lodash.com) library.","homepage":"https://github.com/alex-hladun/lotide#readme","repository":{"type":"git","url":"git+https://github.com/alex-hladun/lotide.git"},"author":{"name":"@ahladun"},"bugs":{"url":"https://github.com/alex-hladun/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 @ahladun/lotide`\n\n**Require it:**\n\n`const _ = require('@ahladun/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* `assertEqual(val1, val2)` : Checks two non-array values and returns true if they are identical, or false if they are not. \n* `assertObjectsEqual(obj1, obj2)` : Compares two objects to see if they are identical. Supports 1 level of array nesting within the object. Supports unlimited nested objects. \n* `countLetters(str)` : Returns an object with a list and number of occurences fo characters in the supplied str. \n* `countOnly(arr, elem)`: Returns a count of how many times the element appears in the array. \n* `eqArrays(arr1, arr2)` : Compares two arrays, returns true if they are identical. Supports unlimited nesting of arrays. \n* `findKey(obj, cb())` : Given an object and callback function, finds the first key for which that value occurs. E.g. ```findKey(obj, x => x.stars === 2)```.\n* `findKeyByValue(obj, valueStr)` : Given an object and value, finds the first key for which that value occurs. No callback function necessary. \n* `flatten(arr)` : Removes 1 level of nesting from the given array. \n* `head(arr)` : Returns the first item in an array.\n* `letterPositions(str)` : Given a string, returns an object with the position(s) of each letter in the string. \n* `map(arr, cb)` : Given an array, returns a new array which meets the conditions of the supplied callback function. \n* `middle(arr)` : Returns the middle element(s) of an array. If array size < 2, returns an empty array. \n* `tail(arr)` : Removes first element and returns the rest of the array.\n* `takeUntil(arr, cb)`: Given an array, returns a new array with all elements (from left to right) until the callback function criteria is met. \n* `without(arr1, arr2)`: Returns a new array where values of array 2 are not present in array 1. ","readmeFilename":"README.md"}