{"_id":"@afreeda/lotide","_rev":"1-8da045408d279bcdcb8e864940f667d2","name":"@afreeda/lotide","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@afreeda/lotide","version":"1.0.0","description":"lotide library by afreeda","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/afreeda-m/lotide.git"},"author":{"name":"afreeda"},"license":"ISC","bugs":{"url":"https://github.com/afreeda-m/lotide/issues"},"homepage":"https://github.com/afreeda-m/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"42c5dc700e41ce8aa12771d4edb0fcde701ff489","_id":"@afreeda/lotide@1.0.0","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-mEEi9DViFLo9XA40KrSPGK1DB9eip+WeCIPIcxytr9PPKn5B2WSA+dJPqIU/MfKv3J6tAP7Dz1QJ6e9ogLC3aQ==","shasum":"d7ff2ec0a0abae464ebc2a52f65c016859040e10","tarball":"https://registry.npmjs.org/@afreeda/lotide/-/lotide-1.0.0.tgz","fileCount":38,"unpackedSize":20206,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIAgoKpXc0xAQK2wICW7kBYI/Dv8zrP0aE5uQLvghzlOGAiBn6aV7JgkdPNqWsTNXjhbADHpkACDqQwfoZfAIaxegBA=="}]},"_npmUser":{"name":"afreeda","email":"amahesan@uoguelph.ca"},"maintainers":[{"name":"afreeda","email":"amahesan@uoguelph.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1686455047928_0.985936104912468"},"_hasShrinkwrap":false},"1.0.1":{"name":"@afreeda/lotide","version":"1.0.1","description":"lotide library by afreeda","main":"index.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/afreeda-m/lotide.git"},"author":{"name":"afreeda"},"license":"ISC","bugs":{"url":"https://github.com/afreeda-m/lotide/issues"},"homepage":"https://github.com/afreeda-m/lotide#readme","devDependencies":{"chai":"^4.3.7","mocha":"^9.2.2"},"gitHead":"2be5509a48703c767abc95e32b6e55120faea606","_id":"@afreeda/lotide@1.0.1","_nodeVersion":"15.14.0","_npmVersion":"7.7.6","dist":{"integrity":"sha512-/CW4yHvL+YORwcAYG5WgZ9Cc+CSjKCHaDVLdxp631hXWGJAvVgaUS8zC5flmXKzYYIY4PduLyBC4TrQjKSWsqg==","shasum":"c122f4ffd4dadaff221c6a0f59d60984e9f97633","tarball":"https://registry.npmjs.org/@afreeda/lotide/-/lotide-1.0.1.tgz","fileCount":38,"unpackedSize":20583,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDVAL7K9kAmcszr+Liyyp/F8V/3aY5vQ/xyUbxzFdtT2wIhAMlnyZIc1O3czszesoaWA+8IH/ef4W0UATL7A++2uTQO"}]},"_npmUser":{"name":"afreeda","email":"amahesan@uoguelph.ca"},"maintainers":[{"name":"afreeda","email":"amahesan@uoguelph.ca"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1686671917635_0.3079677961691676"},"_hasShrinkwrap":false}},"time":{"created":"2023-06-11T03:44:07.861Z","1.0.0":"2023-06-11T03:44:08.090Z","modified":"2023-06-13T15:58:37.958Z","1.0.1":"2023-06-13T15:58:37.843Z"},"maintainers":[{"name":"afreeda","email":"amahesan@uoguelph.ca"}],"description":"lotide library by afreeda","homepage":"https://github.com/afreeda-m/lotide#readme","repository":{"type":"git","url":"git+https://github.com/afreeda-m/lotide.git"},"author":{"name":"afreeda"},"bugs":{"url":"https://github.com/afreeda-m/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 @afreeda/lotide`\n\n**Require it:**\n\n`const _ = require('@afreeda/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(value1, value2)`: logs to the console whether two given values are the same\n* `head(array)`: returns the first element of a given array\n* `tail(array)`: returns every element except the first element in a given array in a form of an array\n* `middle(array)`: returns an array of the middle elements of a given array\n* `eqArrays(arr1, arr2)`: checks if two given arrays are equal\n* `assertArraysEqual(arr1, arr2)`: assertion to check if two arrays are equal based on eqArrays()\n* `without(arr, itemsToRemove)`: when given an original array and an array of items to be removed, returns a modified original array without elements that were removed\n* `flatten(array)`: when given a nested array, returns a 1 dimensional array\n* `countOnly(allItems, itemsToCount)`: returns the counts for a specific subset of those items in a given array\n* `countLetters(string)`: returns an object of the number of times a character appears in a given string\n* `letterPositions(sentence)`: returns an object with array values of the index number of each character in a given string\n* `findKeyByValue(object, value)`: returns the key when given a value corresponding to that key\n* `eqObjects(obj1, obj2)`: checks for equality of given objects\n* `assertObjectsEqual(obj1, obj2)`: assertion to check for object equality using eqObects()\n* `map(array, callback)`: given an array and a callback, the function will return a modified array based on the condition of the callback\n* `takeUntil(array, callback)`: given an array and a callback, returns a new array of items up until a particular condition is met\n* `findKey(object, callback)`: given an object and callback, the function will return the first key associated with the value from the callback\n","readmeFilename":"README.md"}