{"_id":"@edgar_sargsyan/lotide","_rev":"2-cf517ac19bdff02a0c2a72ec41576dc8","name":"@edgar_sargsyan/lotide","dist-tags":{"latest":"1.0.0"},"versions":{"1.0.1":{"name":"@edgar_sargsyan/lotide","version":"1.0.1","description":"Edgar's library of helper functions","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Edgarsar/lotide.git"},"author":{"name":"Edgar Sargsyan"},"license":"ISC","bugs":{"url":"https://github.com/Edgarsar/lotide/issues"},"homepage":"https://github.com/Edgarsar/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.0"},"gitHead":"27410ae9890d7be7f530d63f0052cb572d4e3848","_id":"@edgar_sargsyan/lotide@1.0.1","_nodeVersion":"12.22.8","_npmVersion":"8.3.2","dist":{"integrity":"sha512-VcajAHDEzSNnAIYvn9Tvoaiasx6SedJTWSqnJ7rdDCXV72Aag+y5xIH1ZyUWkqE3zmzhqMAL2fmiiLD3QGHCqg==","shasum":"53ab03a0733741607b6b293f58f142025ceb85bf","tarball":"https://registry.npmjs.org/@edgar_sargsyan/lotide/-/lotide-1.0.1.tgz","fileCount":36,"unpackedSize":22415,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDv0iACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrvVxAAln1MGN6ob54E4eWwNpGPzVl//b4H0G13iIP63jgPU8bFzewD\r\nigyJo3FNVu2xgfw9gPQdQRU806kV6r9RPyBazthqCwCiRhXasoZnsN77RRU4\r\nSYxa1rv4pZjr/beJirQda1qCtw7eM5+ORxUnrkE4Vd/RPK+2Ic8gbp6WDktE\r\n232LrL8sBG84RrS4RT6U2coCAk4YqRqLX0dJUEw7cXnko/DRFy2pb1uSfT7A\r\n1Af57cLCHngnTL+eQurQhRqjkjq6YrM07JKgM/8bRozsEDOsO/fKt+DFB2Z1\r\nxwJBgvqTKdprr+g6W5G8kPt+88Qi27EJA1cwdUrgTyM6MqUANLys+Jce6Lv7\r\n4aB2ufUyMEq9Iap+57KP3cziDOWdJgrv9F6k1YQVtmMFx5sV8VBiMJNIeE8L\r\nyXKnkE8mr3GBHnNPamDShhCp6ufd2XF5UIO9ImAuaXhub0RYWrYvhI4MGE61\r\n9NnYo/aoOXib5FNOqRaSlBrMQG7DNpjTChxmDdzrTMNyNwDl38S2JwSDHUyP\r\np4MJnG9+J8kLhRG1B+GSodUFq87kTDlTA3XhNbdeF+jIbIx2uHjj/tR3nKJy\r\nVe+lv5H88mTNTGaZED/itb0WMqS1DDC3VgtGbtO9eH1xQbZpVcfIN6+6B9sI\r\n9IKNQ32ssnWovuG91LJhEGF49Pcv9dokokg=\r\n=1/FO\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCICPAB3WCzxPabj+dTY6t0ZW5c6kojV3gUxGgcwD5bephAiBvkMbNW20uPkvytTkH5a0IFwP57BY7ewrJpiZsprSRGw=="}]},"_npmUser":{"name":"edgar_sargsyan","email":"edgarsargsyan@hotmail.com"},"maintainers":[{"name":"edgar_sargsyan","email":"edgarsargsyan@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.1_1645149474027_0.5569796916649121"},"_hasShrinkwrap":false},"1.0.0":{"name":"@edgar_sargsyan/lotide","version":"1.0.0","description":"Edgar's library of helper functions","main":"assertArraysEqual.js","directories":{"test":"test"},"scripts":{"test":"mocha"},"repository":{"type":"git","url":"git+https://github.com/Edgarsar/lotide.git"},"author":{"name":"Edgar Sargsyan"},"license":"ISC","bugs":{"url":"https://github.com/Edgarsar/lotide/issues"},"homepage":"https://github.com/Edgarsar/lotide#readme","devDependencies":{"chai":"^4.3.6","mocha":"^9.2.0"},"gitHead":"7d5f208dda0d64191b9025b610e502bdf5cebbb6","_id":"@edgar_sargsyan/lotide@1.0.0","_nodeVersion":"12.22.8","_npmVersion":"8.3.2","dist":{"integrity":"sha512-I/jouvLFUHWCZDSBnebC6V5hGbDs9FdujrcNSHWxj1gzydwb6IX25qG67DmVDvxYhj+J8vs4ObzjLnk4i7DQdQ==","shasum":"2903e69ad1c95c0ced00ccba94eceb6c4fbbe3b1","tarball":"https://registry.npmjs.org/@edgar_sargsyan/lotide/-/lotide-1.0.0.tgz","fileCount":36,"unpackedSize":21104,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJiDxbQACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmpNQQ//T7g2g/0jvt4FRbcIqoxyjkkLX7tScsV7jzbf2uk5UlpfUEWS\r\nH+aMbrdft+dlIysrrxHF7SzPnUpjz3QhTmHVLXqoY82LvFn70kDp5TPaq9yB\r\nuO+rMGFXSAri2AsmTgxgY/QUUqExpQlqCaLtoqHjvH1K50bdQKKqZP4h3Tji\r\n0w78zNGR2HpbTG40LM4y8z989XCBXyOkgPVie2/7/eDZpZ7TwB4N56IKCn+y\r\n7tZzbqRs3YqSuNgrgQNBmLRXXxI0UfaXJnf0TI6xcf7RtyNhw+05ZLg8cVtb\r\nhQJ8xCQlcABy/kZ6MlK9edyrw3u6HFYIw1WAVecEMaYwH8J1x0QdwbQ9h4Yj\r\nqbZmtyadwTQIlgfalrzMRVrIs4gElA+pI7NqW74i4/9OLsPcBp+cYANzVC9U\r\nmmncECoc0VzyTixmIgdRV4oXiKzAZyuLC2vY0gyms2XIj02nOaFVOT7+9jZW\r\nOKoKi56ffEbljiFeZjXHvo/IsBdDbDWjJJulxDl4GgUcC/CxqPaOzKeaE9UN\r\n9AG/xhPL4y+6Te5i7BS7QITYLjvJJT7OT3jL80Z/Z35XD5N1FpPaykNJLwvn\r\nb385ntSMwcGkgs+K8Uj9Rbqs/9NMbz4chsCv7W+y5vXR+5Pql9LAJPOCWFF6\r\nP3kiQ6Xm8XqzsdH+95hDpKLpWoDCfTfLSiM=\r\n=k7KV\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIECXoJo6EgV14hgzm7sKS/YuCbVBSy0EnlQhzMECoVGNAiBqtoeuG9/JF5498xjO4CnKMWISYv1wEebaTGGEBA5DRw=="}]},"_npmUser":{"name":"edgar_sargsyan","email":"edgarsargsyan@hotmail.com"},"maintainers":[{"name":"edgar_sargsyan","email":"edgarsargsyan@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/lotide_1.0.0_1645156048284_0.26904944513208706"},"_hasShrinkwrap":false}},"time":{"created":"2022-02-18T01:57:53.973Z","1.0.1":"2022-02-18T01:57:54.168Z","modified":"2022-04-05T06:41:33.744Z","1.0.0":"2022-02-18T03:47:28.423Z"},"maintainers":[{"name":"edgar_sargsyan","email":"edgarsargsyan@hotmail.com"}],"description":"Edgar's library of helper functions","homepage":"https://github.com/Edgarsar/lotide#readme","repository":{"type":"git","url":"git+https://github.com/Edgarsar/lotide.git"},"author":{"name":"Edgar Sargsyan"},"bugs":{"url":"https://github.com/Edgarsar/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 edgar_sargsyan/lotide`\n\n**Require it:**\n\n`const _ = require('edgar_sargsyan/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(arr)`: Takes in an array and returns the first element in the array.\n* `tail(arr)`: Takes in an array and returns everything except the first element of the array.\n* `middle(arr)`: Takes in an array and returns middle most element of the array.\n* `without(source, itemsToRemove)`: 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.\n* `flatten(arr)`: Takes in an array that contains elements including nested array of elements and returns a flattened version of the array.\n* `countOnly(allItems, itemsToCount)`: Takes in a collection of items and returns a specific subset of those items.\n* `countLetters(string)`: Takes in a sentence and returns a count of each of the letters in the sentence.\n* `letterPositions(string)`: Takes in a string and returns all indices of letter positions in the string.\n* `findKeyByValue(obj, val)`: Takes in an object and a value and returns the first key that corresponds to that value.\n* `map(array, callback)`: 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* `takeUntil(array, callback)`: Takes in an array and callback and returns a slice of the array based on the criteria specified in the callback.\n* `findKey(obj, callback)`: Takes in an object and callback and returns the first key that meets the criteria specified in callback.\n* `assertEqual(actual, expected)`: Takes in 2 values and returns true if they are equal and false otherwise \n* `eqArrays(arrOne, arrTwo)` : Takes in 2 arrays and returns true if the arrays are equal and false otherwise.\n* `assertArraysEqual(actual, expected)`: Takes in 2 arrays and returns true if they are equal and false otherwise.\n* `eqObjects(actual, expected)` : Takes in 2 objects and return true if they are equal and false otherwise.\n* `assertObjectsEqual((actual, expected)`: Takes in two objects and logs in the console log to check and return the result of if they are identical","readmeFilename":"README.md"}