anthony1nguyen1-a2

1.0.0 • Public • Published

Assignment 2

A group of functions used on arrays and objects.

Purpose

BEWARE: This library was published for learning purposes. It is not intended for use in production-grade software. Used on array and objects.

Usage

Install it: npm install Anthony1Nguyen1-A2> Require it: const _ = require('Anthony1Nguyen1-A2'); Call it: const results = _.findNaNIndex([2, NaN, 8, 16, 32]) // => [1]

Documentation

The following functions are currently implemented:

  • function1(findNaNIndex): Find all the indexes where NaN is found in a given array of numbers and NaN
  • function2(isArrayFactorChain): Return true or false if an array is a factor chain or not
  • function3(countNumberOfArrays): Return the count for the number of arrays inside a given array
  • function4(participants): Returns an array of all the unique player names
  • function5(winnersObject): Returns an object which lists each participant, and a list of who they've beaten (unique)
  • function6(biggestLoser): Returns the loser with the highest amount of loser points

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i anthony1nguyen1-a2

      Weekly Downloads

      0

      Version

      1.0.0

      License

      ISC

      Unpacked Size

      8.97 kB

      Total Files

      10

      Last publish

      Collaborators

      • anthony1nguyen1