cmpt315_a2_ss
v1.0.0
Published
To Delevop javascript programming skills as well as developing and practicing npm
Downloads
1
Readme
cmpt315_a2_ss
Purpose
To develop a JavaScript library that provides functions to manipulate arrays and objects as well as to develop JavaScript programming skills
**BEWARE: This library was published for learning purposes. It is not int Describe the intended intent
Usage
Install it:
npm install @username/CMPT315_A2_SS
Require it:
const _ = require('@stojics/CMPT315_A2_SS');
Call it:
const results = _.findNANIndex([array])
Documentation
The following functions are currently implemented:
Array Functions:
* findNANIndex([array])
: find all the indexs where NaN is found in an array
* isArrayFactorChain([array])
: description
* countNumberOfArrays([array])
: description
Object Functions:
* participants()
: Returns an array of all of the players names
* winnersObject()
: Returns an Object of all of the players and who've they've beaten
* biggestLoser()
: Returns the name of the person who has the largest loser tally, if a player wins the winner tally is subtracted from the loser tally