Skip to content

Latest commit

 

History

History
47 lines (24 loc) · 1012 Bytes

File metadata and controls

47 lines (24 loc) · 1012 Bytes

Array Divider Instructions

Description

This NodeJS application divides an array into an given number of equal sub arrays when possible.

Installation

Installation is managed via a javascript package manager. You can use either Yarn or npm. From the root folder run the following commands depending on your package manager of choice

npm install

or

yarn install

Once the NPM modules are installed, you can run the application using:

npm start

or

yarn start

Running the Application

app.js in the root folder contains a small snippet of code that runs the given example

To run this example you can enter either of the following commands:

npm start

or

yarn start

Tests

Tests are written using Mocha, Chai with nyc for checking code coverage. To run the tests enter either of the following commands:

npm test

or

yarn test