{"_id":"@calvin.xu/lotide","_rev":"1-327fb2b36ea5d04c6dcb988aef01561e","name":"@calvin.xu/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@calvin.xu/lotide","version":"1.0.0","description":"A mini clone of the Lodash library.","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/calvin-xu0/lotide.git"},"keywords":[],"author":{"name":"Calvin Xu"},"license":"ISC","bugs":{"url":"https://github.com/calvin-xu0/lotide/issues"},"homepage":"https://github.com/calvin-xu0/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.0"},"gitHead":"d69761ab7271d68bc3b492402de5e125b6d83bbd","_id":"@calvin.xu/lotide@1.0.0","_nodeVersion":"12.22.5","_npmVersion":"6.14.14","dist":{"integrity":"sha512-9wqqTQZEw9ITGeGPV3NE6pvdLrQhKrmnmkBe//BZtr7lytx+rCT6pVqPsW+jvas7a9QrxZTgq6L4JqaE8Q/haA==","shasum":"74b8cf7bf6f4107f8990b5e4f4848d8716209288","tarball":"https://registry.npmjs.org/@calvin.xu/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":19762,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhJAQyCRA9TVsSAnZWagAAHaUQAIRT/UdwdZD4Aejw3m85\nHux5umBxpR5jLuDCVhUTxknfkLSoT7OLXCa+NDqtU+TpxWZxa+Dp/iqCmRY2\n4St4R5++yZW7IwlF/Z8hjCJt6Galmridrq+MyqyNyC0PNfEy6scU+eahS0B/\nWQnlU1OtWdwRgy7hevxRQOYBirWhtR74tYWHscboHzCLtKQSpLL2yJKN14/I\nan+VNMjrY1ggRXrYTM5cCD8JZPVngDAqPat1LO3q9cHBZa5zOJW4bik931g8\nXv+K+WjA40fPT6QECd6p81LjtMNOw9lo5Uywv8V/imhvlcq8HSQZ5ShMDRJu\nlN2uxb0AUkTQfKXEHlTbJQRMJW9IXeGJAvo/hU6VBBXwLrpSkfGJt2fl6Uud\n5lerFt7Q/UGGRV0oQSPclpNz3Oi4OZLMQlQjIZsiBvasHrKKDcHoI/WTEK9I\nh6hrB25PnPOhWMq1v69/Wm6ohZQu97Cvr8zBbH8FmmwuyjIYunwDB9Dd99KX\n0AacKe6Mt6bxIsyWjadfNQPK6G6n2uOqYA8EZCmDD6rc9OtLxuc/U64KRfPd\nuHCE40fqTE2TJK2Zmrgsvz7Pt6EsPkkyCmMU6F0jRTpjP1N2rFDitfPvDmLj\n3GMXBTPrzJmHgcnHPw4Jl+XKYVlxAmpq6p8oJ9XSIpBVJ6Y8PLeDOyHSck3R\nX/qi\r\n=mnTH\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIEAQ/N0mrqpgGZ76J0RB53/on+wYEdaVml6lTxBp1xErAiAoEDYSacwMjePCi4kUVZgOi9dPMpj48DA+/lVHIHfQug=="}]},"_npmUser":{"name":"calvin.xu","email":"calvin.xu.jy@gmail.com"},"maintainers":[{"name":"calvin.xu","email":"calvin.xu.jy@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1629750322233_0.8220198362126558"},"_hasShrinkwrap":false}},"time":{"created":"2021-08-23T20:25:22.162Z","1.0.0":"2021-08-23T20:25:22.476Z","modified":"2022-04-04T21:33:33.143Z"},"maintainers":[{"name":"calvin.xu","email":"calvin.xu.jy@gmail.com"}],"description":"A mini clone of the Lodash library.","homepage":"https://github.com/calvin-xu0/lotide#readme","keywords":[],"repository":{"type":"git","url":"git+https://github.com/calvin-xu0/lotide.git"},"author":{"name":"Calvin Xu"},"bugs":{"url":"https://github.com/calvin-xu0/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 @calvin.xu/lotide`\n\n**Require it:**\n\n`const _ = require('@calvin.xu/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(array)`: Returns the first element of `array` as a one element array\n* `tail(array)`: Returns every element of `array` except the first as an array\n* `middle(array)`: Returns the middle-most element(s) of `array` as an array\n* `countLetters(string)`: Returns an object with letters of `string` as keys with their counts as their values\n* `countOnly(allItems, itemsToCount)`: Returns a number with the number of times `allItems` contains `itemsToCount`\n* `findKey(object, callback)`: Returns the first key of `object` that fulfills the condition set by `callback`\n* `findKeyByValue(object, value)`: Returns the first key of `object` that has the value of `value`\n* `flatten(array)`: Returns an array of all non-array elements within an input `array` that may have nested arrays\n* `letterPositions(string)`: Returns an object with letters of `string` as the keys and an array of their index positions in `string` as their values\n* `map(array, callback)`: Returns an array with the function `callback` called on each element of `array`\n* `takeUntil(array, callback)`: Returns an array of sequential elements of `array` until it reaches an element that returns a truthy evaluated `callback`\n* `without(source, itemsToRemove)`: Returns a copy of the array `source` without elements found in `itemsToRemove`","readmeFilename":"README.md"}