@asad0/cmpt315a2

1.0.0 • Public • Published

cmpt315a2

A JavaScript library for manipulating arrays and objects, designed for learning and practicing JavaScript fundamentals.

Purpose

**BEWARE: This library was published for learning purposes. This project aims to help understand and implement basic array and object manipulation methods.

Usage

Install it: npm install @asad0/cmpt315a2

Require it: const _ = require('@asad0/cmpt315a2');

Call it: For example, to use findNaNIndex() function: const results = _.findNaNIndex([2, NaN, 8]);

Documentation

The following functions are currently implemented:

  • findNaNIndex(array): Finds all indexes where NaN is present in a given array.
  • isArrayFactorChain(array): Checks if a given array is a factor chain, returning true or false.
  • countNumberOfArrays(array): Counts the number of arrays within a given array.
  • participants(matches): Returns an array of all unique participant names from a list of match records.
  • winnersObject(matches): Creates an object listing each participant and the opponents they've beaten.
  • biggestLoser(matches): Identifies the player with the highest tally of loser points, considering the wins and losses.

Each function has its own file .js and is documented for easy understanding and use.

Readme

Keywords

Package Sidebar

Install

npm i @asad0/cmpt315a2

Weekly Downloads

0

Version

1.0.0

License

ISC

Unpacked Size

7.23 kB

Total Files

9

Last publish

Collaborators

  • asad0