@jackf91/assignment2
v1.0.0
Published
Assignment 2 for CMPT 315 Winter 2024
Downloads
1
Readme
CMPT315_Assignment_2
Assignment 2 for CMPT 315 Winter 2024
Purpose
**BEWARE: This library was published for learning purposes. It is not int This assignment is meant to demonstrate understanding of creating npm package and javacript programming.
Usage
Install it:
npm install @jackf91/assignment2
Require it:
const _ = require('@jackf91/assignment2');
Call it:
const results = _.functionName(parameter)
Documentation
The following functions are currently implemented:
findNaNIndex(array)
: Function to find all the indexes where NaN is found in a given arrayisArrayFactorChain(array)
: Function to check if the given array is a factor chain or notcountNumberOFArrays(array)
: Function takes in an array and return the number of arrays inside the given arrayparticipants(array_matches)
: Function to return list of players from the given array of matcheswinnersObject(array_matches)
: Function that return an array of winner and people they beaten from the matches arraybiggestLoser(array_matches)
: Function return the loser name with the biggest tally of loser_point