315-assignment2
v1.0.1
Published
CMPT 315 Assignment 2- JavaScript and NPM practice
Downloads
8
Readme
Project Title
This project is for a submission for Assignment 2 for CMPT 315
Purpose
**BEWARE: This library was published for learning purposes.
Documentation
The following functions are currently implemented:
*biggestLoser(matches)
: Returns the loser name with the biggest tally of loser_points. If a player is the winner, the loser_points are subtracted
*countNumberOfArrays(data)
: Return the count for the number of arrays inside a given array
*findNaNIndex(data)
: Find all the indexes where NaN is found in a given array of numbers and NaN
*isArrayFactorChain(data)
: Return true or false if an array is a factor chain or not
*participants(matches)
: Returns an array of all the player names with no duplicates
*winnersObject(matches)
: Returns an object which lists each participant, and a list of who they've beaten