315-l2
v3.0.0
Published
assignment two
Downloads
18
Readme
CMPT315 L2
Lab 2 assignment for CMPT315
Purpose
**BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software.
Usage
Install it:
npm install ohtani/315-l2
Require it:
const _ = require('ohtani/315-l2');
Documentation
The following functions are currently implemented:
function1(findNaNIndex)
: Find all the indexes where NaN is found in a given array.function2(isArrayFactorChain)
: Return true or false if an array is a factor chain or not.function3(countNumberOfArrays)
: Return the count for the number of arrays inside a given array.function4(participants)
: Returns an array of all unique player names.function5(winnersObjects)
: Returns an object which lists each participant, and a list of who they've beaten.function6(biggestLoser)
: Returns the loser name with the biggest tally of loser_points.