{"_id":"@amyleblanc/lotide","_rev":"2-fc3f3545b704016a8c97775b6d49f842","name":"@amyleblanc/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.0":{"name":"@amyleblanc/lotide","version":"1.0.0","description":"A Lighthouse Labs Project: 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/amyleblanc/lotide.git"},"author":{"name":"@amyleblanc"},"license":"ISC","bugs":{"url":"https://github.com/amyleblanc/lotide/issues"},"homepage":"https://github.com/amyleblanc/lotide#readme","devDependencies":{"chai":"^4.3.4","mocha":"^9.1.3"},"gitHead":"67344985e0acffe7b925879c422f257f331d684a","_id":"@amyleblanc/lotide@1.0.0","_nodeVersion":"17.0.1","_npmVersion":"8.1.0","dist":{"integrity":"sha512-9Aho6niIHMRgnVUWiWRRRcvDhuvDaltzuNpo+cgqrghLevGbyo8zyuxADydyP4aCskHmACdddvxOGWqtzXuOMw==","shasum":"29f178a9626e1ec55ec9328b2314e5fdf0a8c346","tarball":"https://registry.npmjs.org/@amyleblanc/lotide/-/lotide-1.0.0.tgz","fileCount":26,"unpackedSize":21803,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.13\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJhzFSdCRA9TVsSAnZWagAAFswP/3shn7pA2pBhhrt4ZQ2U\n051+2D/w0qgoYYJxwjA6ZUlSHWhFR6LHekNV6A1jrOfod3Ua18KZhBIyyZih\nEdRHDKBJryKumCU6RDQj8qf983rHIZWXaYb34nO18orTjp1vyKPCnMLzBgm4\nEPstCw25IzB1WbbdHCot1qDtpE5sNl0x6nEqKt8UH8SqCHrP5OUfn9yXKWq3\no/nr0RFL61IGrbUbyIEd/1kDd6daNyJnqiwvVwZQtKhxPF060nRqrKxtSW5E\nY3fHqmv4xSWdLZzXHztmHlqr1CjVmISQ25pybELLdq7eOlLyu4KDhjyTvUOi\nBcIYaFNRwHfcfAMZkIwaenB2hvJ6oJvEs2Ir/JrcNrIpaDA1e3G9io+owLNz\n4KsPajtpI5l5ti9OB22AuyMK9Un09pzTTOq/Nps/gwrHbElw6f13wd24z4HZ\n0gPU6k1pH96snk8qz5jVilcZRMBPoVfUhmPI36Kkndz0nd9ZCx3SpaFlwSUT\nIpdUEqKCOCKlCgiHKJlXT25VrDhb8y48B+xuTSKg7vvA39yf8IouwwzX1TT4\niL4Ta5v2vFOSknMGesM5BEXYfKDN9GElr8MkLaowcDKC2KKpgXq04LG8S+fT\nMf9B3NtvzYf7vti7HCYuCPeuaEp34gkuta4G9xOeQy/ohVI3mI2exajoMbkr\nKdCb\r\n=wrES\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIHLRNuHp6YTa+3+eC2VoT3zr6v6YUdbd+pr0Ep/1dBpiAiEAzKVlfMNcLlxKlbaPlztL/SJN980QG3Y1A+M+rjetbY4="}]},"_npmUser":{"name":"amyleblanc","email":"amymccarthy2014@gmail.com"},"maintainers":[{"name":"amyleblanc","email":"amymccarthy2014@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1636841202222_0.5304928772001802"},"_hasShrinkwrap":false}},"time":{"created":"2021-11-13T22:06:42.152Z","1.0.0":"2021-11-13T22:06:42.382Z","modified":"2022-04-04T13:53:30.453Z"},"maintainers":[{"name":"amyleblanc","email":"amymccarthy2014@gmail.com"}],"description":"A Lighthouse Labs Project: Mini clone of the [Lodash](https://lodash.com) library.","homepage":"https://github.com/amyleblanc/lotide#readme","repository":{"type":"git","url":"git+https://github.com/amyleblanc/lotide.git"},"author":{"name":"@amyleblanc"},"bugs":{"url":"https://github.com/amyleblanc/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 @amyleblanc/lotide`\n\n**Require it:**\n\n`const _ = require('@amyleblanc/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(first, second)`    : A function that takes in 2 arrays and returns true if they are equal and false otherwise.\n* `assertEqual(actual, expected)`       : A function that takes in 2 values and returns true if they are equal and false otherwise.\n* `assertObjectsEqual(actual, expected)`: A function that takes in 2 objects and returns true if they are equal and false otherwise.\n* `countLetters(sentence)`              : A function that takes in a sentence and returns a count of each of the letters in the sentence.\n* `countOnly(allItems, itemsToCount)`   : A function that takes in a collection of items and returns a specific subset of those items.\n* `eqArrays(first, second)`             : A function that takes in 2 arrays and returns true if the arrays are equal and false otherwise.\n* `eqObjects(object1, object2)`         : A function that takes in 2 objects and return true if they are equal and false otherwise.\n* `findKey(object, callback)`           : A function that takes in an object and callback and returns the first key that meets the criteria specified in callback.\n* `findKeyByValue(object, test)`        : A function that takes in an object and a value and returns the first key that corresponds to that value.\n* `flatten(nestedArray)`                : A function that takes in an array that contains elements including nested array of elements and returns a flattened version of the array.\n* `head(array)`                         : A function that takes in an array and returns the first element in the array.\n* `letterPositions(sentence)`           : A function that takes in a string and returns all indices of letter positions in the string.\n* `map(array, callback)`                : A function that takes in an array and a callback and returns a new array based on the results of the callback on each item in the array.\n* `middle(array)`                       : A function that takes in an array and returns middle most element of the array.\n* `tail(array)`                         : A function that takes in an array and returns everything except the first element of the array.\n* `takeUntil(array, callback)`          : A function that takes in an array and callback and returns a slice of the array based on the criteria specified in the callback.\n* `without(source, itemsToRemove)`      : A function that takes in a source array and an itemsToRemove arrays and returns only the items from the source array that are not in the itemsToRemove array.","readmeFilename":"README.md"}