@dafrog1/cmpt315a2
v1.0.0
Published
For Learning purposes
Downloads
1
Readme
CMPT315A2
Learn to use NPM
Purpose
**BEWARE: This library was published for learning purposes. It is not int Describe the intended intent
Usage
Install it:
npm install @dafrog1/CMPT315A2
Require it:
const _ = require('@dafrog1/CMPT315A2');
Call it:
const results = _.findNaNIndex()
Documentation
The following functions are currently implemented:
findNaNIndex(Array)
: find and return an array of indexs where NaN's are located in a arrayisArrayFactorChain(Array)
: check if an array of integers is a factor chaincountNumberOfArrays(Array)
: check how many arrays are nested in a arrayuniqueFilter(Array)
: filter out doubles and return filtered arrayparticipants(Array)
: takes formatted data object. returns list of unique participantswinnersObject(...)
: takes formatted data object. returns data object showing who someone has won againstbiggestLoser(...)
: takes formatted data object. returns name of person with most loser points