@andrewbartko/lab-2-assignment
v1.0.1
Published
implements fundamental array and object manipulation methods
Downloads
6
Readme
#Andrew Bartko Lab-2-Assignment Lab 2 Assignment featuring 3 array functions and 2 object functions ##Purpose **Beware: This library is for learning ##Usage Install it: 'npm install @andrewbartko/lab-2-assignment Require it : 'const _ = require('@andrewbartko/lab-2-assignment');'
Call it:
'const results = _.findNaNIndex()'
##Documentation ##Array functions *findNaNIndex(): Find all the indexes where NaN is found in a given array of numbers and NaN. *isArrayFactorChain(): Return true or false if an array is a factor chain or not. *countNumberOfArrays: Return the count for the number of arrays inside a given array. ##Object Functions
- participants(): Returns an array of all the player names (no player should be listed more than once).
- winnersObject(): Returns an object which lists each participant, and a list of who they've beaten.