@json.lai/assignment-2
v1.1.3
Published
Lab 2 Assignment
Downloads
4
Readme
Lab 2 Assignment
A short description
Purpose
Assignment
Usage
Install it:
npm install @json.lai/<assignment-2>
Require it:
const _ = require('@json.lai/<assignment-2>');
Call it:
const results = _.firstFunction()
Documentation
The following functions are currently implemented:
findNaNIndex(array)
: Returns the position of NaN within the arrayisArrayFactorChain(array)
: Returns true or false if the array is a factor chaincountNumberOfArrays(array)
: Returns the count of the numbre of arrays inside a given arrayparticipants(array)
: Shows all unique participants within the winner and loser columnswinnersObject(array)
: Returns an object that lists each participant and a list of who they've beatenbiggestLoser(array)
: Returns the name of the loser with the biggest tally of loser_points