@kcholowski/lab2

1.1.1 • Public • Published

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 NaN
  • isArrayFactorChain(...): returns true or false if an array is a factor chain or not
  • countNumberOfArrays(...): returns the count for the number of arrays inside a given array
  • participants(...): returns an array of all the players names from a dictionary of matches
  • winnersObject(...): returns an object which lists each participant, and a list of who they've beaten using a dictionary of matches
  • biggest 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

Readme

Keywords

none

Package Sidebar

Install

npm i @kcholowski/lab2

Weekly Downloads

1

Version

1.1.1

License

ISC

Unpacked Size

8.26 kB

Total Files

9

Last publish

Collaborators

  • kcholowski