# cmpt315-a2

This project is for CMPT 315 Assignment 2, MacEwan University Winter 2024.

## Purpose

**_BEWARE:_ This library was published for learning purposes. It is _not_ intended for any
other purpose

## Usage

**Install it:**
`npm install @cycxllin/cmpt315-a2`

**Require it:**
`const _= require('@cycxllin/cmpt315-a2');`

**Call it:**
`const results = _.firstFunction()`

## Documentation

The following functions are currently implemented:
*
`findNaNIndex(array)`
: Finds indicies of all NaN-types on an array
*
`isArrayFactorChain(array)`
: Return true or false if an array is a factor chain or not.
*
`countNumberOfArrays(array)`
: Return the count for the number of arrays inside a given array.
*
`participants(matches)`
: Takes array of matches and returns an array of all the player names
*
`winnersObject(matches)`
: Takes array of matches and returns an object which lists each participant
and a list of who they've beaten.
*
`biggestLoser(matches)`
: Finds the player with the most loser points.
