{"_id":"@crimsx/cmpt315a2","_rev":"1-5abadf4ddb3905a810b68415b56f414d","name":"@crimsx/cmpt315a2","dist-tags":{"latest":"1.0.1"},"versions":{"1.0.0":{"name":"@crimsx/cmpt315a2","version":"1.0.0","description":"Assignment 2 for CMPT315","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/CrimsX/CMPT315A2.git"},"keywords":["A2"],"author":{"name":"Jordan Lai"},"license":"ISC","bugs":{"url":"https://github.com/CrimsX/CMPT315A2/issues"},"homepage":"https://github.com/CrimsX/CMPT315A2#readme","_id":"@crimsx/cmpt315a2@1.0.0","gitHead":"a998153508d82c313a10d68eadd87ef2c4a256eb","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-Ge6dXc7lWYF6NkFsvfH31Ze9jenq0Hqp91okhPDAfZXxOrQa/bndsyhyDQV85gY9HRnepb48dMLDvWRzN7ZySQ==","shasum":"b8bc0f0c562f96372b201b31fd9b12afe3b2a9f8","tarball":"https://registry.npmjs.org/@crimsx/cmpt315a2/-/cmpt315a2-1.0.0.tgz","fileCount":10,"unpackedSize":7024,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIFritEq5CWfWLhOOI3TbzdczXTKty3TR3Z9rXHBVdX9WAiEAg63pvqwTrLbVlk7Yl7LMPpuGoAEnj0mvtdhcCdLiXpE="}]},"_npmUser":{"name":"crimsx","email":"jordan.lai.dev@gmail.com"},"directories":{},"maintainers":[{"name":"crimsx","email":"jordan.lai.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cmpt315a2_1.0.0_1706168451737_0.5979541651728864"},"_hasShrinkwrap":false},"1.0.1":{"name":"@crimsx/cmpt315a2","version":"1.0.1","description":"Assignment 2 for CMPT315","main":"index.js","scripts":{"test":"echo \"Error: no test specified\" && exit 1"},"repository":{"type":"git","url":"git+https://github.com/CrimsX/CMPT315A2.git"},"keywords":["A2"],"author":{"name":"Jordan Lai"},"license":"ISC","bugs":{"url":"https://github.com/CrimsX/CMPT315A2/issues"},"homepage":"https://github.com/CrimsX/CMPT315A2#readme","_id":"@crimsx/cmpt315a2@1.0.1","gitHead":"4e161d53f92939301695b61ab1a39767322e9b7a","_nodeVersion":"20.10.0","_npmVersion":"10.2.3","dist":{"integrity":"sha512-tzs5n4ycwMtgA6E2MHdMYmyvdwi2HM21/g356grLUbQIf4RKvYNUvwrUlqn8mNUywmOjMUOOp5Od26Se43MgYw==","shasum":"e839e192fa36655c2b2f8a82607a87d20fdbb536","tarball":"https://registry.npmjs.org/@crimsx/cmpt315a2/-/cmpt315a2-1.0.1.tgz","fileCount":10,"unpackedSize":7024,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDhTA+pEeNUzImeHdHWrjPLhr3kcm1K7961uz0xSWqxewIgaVo72Ry3udGDGgKzb15HTm4gJAWu0kiW+9+q/ps/N90="}]},"_npmUser":{"name":"crimsx","email":"jordan.lai.dev@gmail.com"},"directories":{},"maintainers":[{"name":"crimsx","email":"jordan.lai.dev@gmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/cmpt315a2_1.0.1_1706168804311_0.8730329958940999"},"_hasShrinkwrap":false}},"time":{"created":"2024-01-25T07:40:51.655Z","1.0.0":"2024-01-25T07:40:51.901Z","modified":"2024-01-25T07:46:44.659Z","1.0.1":"2024-01-25T07:46:44.472Z"},"maintainers":[{"name":"crimsx","email":"jordan.lai.dev@gmail.com"}],"description":"Assignment 2 for CMPT315","homepage":"https://github.com/CrimsX/CMPT315A2#readme","keywords":["A2"],"repository":{"type":"git","url":"git+https://github.com/CrimsX/CMPT315A2.git"},"author":{"name":"Jordan Lai"},"bugs":{"url":"https://github.com/CrimsX/CMPT315A2/issues"},"license":"ISC","readme":"# CMPT315A2\nUnderstanding JavaScript and Creating your own NPM Library\n\n## Purpose\nDevelop a basic JavaScript library similar to Lodash that provides functions to manipulate arrays and objects. \n\n## Usage\n**Install it:**\n\n`npm install @crimsx/cmpt315a2`\n\n**Require it:**\n\n`const _ = require('@crimsx/cmpt315a2');`\n\n**Call it:**\n\n`const _ = _.findNaNIndex()`\n\n## Documentation\nThe following functions are currently implemented:\n* `findNaNIndex(arr)`: Find all the indexes where NaN is found in a given array of numbers and NaN. \n* `isArrayFactorChain(arr)`: Return true or false if an array is a factor chain or not. \n* `countNumberOfArrays(arr)`: Return the count for the number of arrays inside a given array. \n* `participants(matches)`: Returns an array of all the player names (no player should be listed more than once). \n* `winnersObject(matches)`: Returns an object which lists each participant, and a list of who they've beaten. \n* `biggestLoser(matches)`: Returns the loser name with the biggest tally of loser_points. If a player is the winner, the loser_points are subtracted, and if a player is a loser, then the loser_points are added. Find the player with the largest tally of loser_points. \n","readmeFilename":"README.md"}