@kcholowski/lab2
v1.1.1
Published
This isProvides functions to manipulate arrays and objects
Downloads
2
Readme
Lab2
Provides functions to manipulate arrays and objects
Purpose
**BEWARE: This library was published for learning purposes. It is not intended for functional use
Usage
Install it:
npm install @kcholowski/Lab2
**Require it:**
const _ = require('@kcholowski/Lab2');**Call it:**
const results = _.firstFunction()`
Documentation
The following functions are currently implemented:
findNaNIndex(...)
: finds all the indexes where NaN is found in a given array of numbers and NaNisArrayFactorChain(...)
: returns true or false if an array is a factor chain or notcountNumberOfArrays(...)
: returns the count for the number of arrays inside a given arrayparticipants(...)
: returns an array of all the players names from a dictionary of matcheswinnersObject(...)
: returns an object which lists each participant, and a list of who they've beaten using a dictionary of matchesbiggest loser(...)
: returns the loser name with the biggest tally of loser_points. If a player is the winner, the loser_points are subtracted, and if a player is a loser, then the loser_points are added