{"_id":"@aal-brown/lotide","_rev":"1-5140e09d790a9f224677f07907321c8d","name":"@aal-brown/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@aal-brown/lotide","version":"1.0.0","description":"A mini clone of the [Lodash](https://lodash.com) library.","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/aal-brown/lotide.git"},"author":{"name":"aal-brown"},"license":"ISC","bugs":{"url":"https://github.com/aal-brown/lotide/issues"},"homepage":"https://github.com/aal-brown/lotide#readme","devDependencies":{"chai":"^4.2.0","mocha":"^7.0.0"},"gitHead":"b2342eb3048b60f941be98eaae4ce1c6cab4a243","_id":"@aal-brown/lotide@1.0.0","_nodeVersion":"8.9.4","_npmVersion":"6.13.4","dist":{"integrity":"sha512-5l6u0mzp/9ZgzkXq4MNfUpRJgj5gjHMignxchcK8hHOQR+jild48b8Auz9X+UxyQCn4cXj58AWrgJaSKsdWJCA==","shasum":"680535dc25e0128e981ecb94167dec4be018fe43","tarball":"https://registry.npmjs.org/@aal-brown/lotide/-/lotide-1.0.0.tgz","fileCount":27,"unpackedSize":20664,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeHP6NCRA9TVsSAnZWagAApUoQAI4TCNZRBvgE7+/GHchD\nLU62HLhDCCAUBtP+NJZ9QIXSznjD27/VqT8FsiZQ5bNHDrrXIkbnre73OfeF\nqgFrDQpnOjgRcTcpWDRheGbgW28o3Z/2wfv1aZtYbW3BTzQs340JkR+8ghv3\npqNLYBx7tVGb7YW3U6YXBwUD3Fmo2Wdssk7/i67UMEA9GzQJlWJY6IgCJDwj\nm/Bx/1xuW6mUe1pQDDyNWOXBrsTP9jTpiyKV2t7HwX6BctCrdpK6Js4dx3z3\nnvM6FKDvgeRWW5jF6dFE2HDJGJ3xrL3gx4x4EvDWgb0get0MbTIPB8pZt1mF\nOBhqKMggXdcj6vRNK2gXfYlDlbfZuzSlVyJ1pd17rgYBCEGldLtJxnX+cmUo\nd/H7nl48rVTyvzHNJkmqZogpzD8LAJJHXi8AIsgZBjtIyUKs+NPWh+xDbJOK\nsYALa8NpUn5hS+yzuuqjv4ZO7yrG7FGKOJapWmCl+e8rce3r55Jc/qTWf5rC\nqMmQn+PqjBjTahuawCVJNuKQJI7jjO30cUxnXUgpi148Xv7HwC8DDUTXGZdf\n9NmqftGc5gAqmXzNXheyUVkPiaAE3NFqYFVDCpmVtxr0Eetg65SuH6PSnbfD\naSUSD+k/+wJ/qEBYIqhVRSvvtuda8ZOy5RJAcwFYWhRZOMP/RMYFlCStMoxX\nKeXb\r\n=8Bdm\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHbHLBdmTfPUv0tiF9DaQnAICCq+i1akgVZYYgHn7nDkAiEArYK6CRHmIp90iAnyv75AYIDsKIpVyNdptJZ7UasZn2k="}]},"maintainers":[{"name":"aal-brown","email":"adlai.brown@gmail.com"}],"_npmUser":{"name":"aal-brown","email":"adlai.brown@gmail.com"},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1578958477073_0.38885498666466556"},"_hasShrinkwrap":false}},"time":{"created":"2020-01-13T23:34:37.030Z","1.0.0":"2020-01-13T23:34:37.264Z","modified":"2022-04-04T10:55:03.865Z"},"maintainers":[{"name":"aal-brown","email":"adlai.brown@gmail.com"}],"description":"A mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/aal-brown/lotide#readme","repository":{"type":"git","url":"git+https://github.com/aal-brown/lotide.git"},"author":{"name":"aal-brown"},"bugs":{"url":"https://github.com/aal-brown/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 @username/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* `head:` Returns the first item of an array.\n* `tail:` Returns all except the first item of an array.\n* `middle:` Returns the middle item/s of an array.\n* `assertArraysEqual:` Assert equal function that works for arrays.\n* `assertObjectsEqual:` Assert equal function that works for objects.\n* `assertEqual:` Assert equal function for primitive data types.\n* `countLetters:` Counts the number of characters in a string.\n* `eqArrays:` Returns true or false based on whether two arrays are identical.\n* `eqObjects:` Returns true or false based on whether two arrays are identical.\n* `findKey:` Takes in an\n object and a callback and\nreturns the first key for which the callback returns a truthy value.\n* `findKeyByValue:` Takes in an object and a value, it will scan the object and return the first\nkey which contains the given value.\n* `flatten:` Takes in an array that may contain nested arrays and returns an array without nesting.\n* `letterPositions:` Take in a string and return an object where the position of each character is stored.\n* `map:` Maps the elements from one array to another based on a provided callback function.\n* `takeUntil:` Populates a new array with elements from an existing array until a truthy value is returned by the callback function.\n* `without:` Takes in two arrays, the elements from the second one are removed from the first, and the resultant array is returned.","readmeFilename":"README.md"}