Skip to content

DonalRafferty/ArrayFlatten

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Array Flatten Exercise

This is a simple Nodejs application that is an exercise in writing a utility function to take nested array items and turn them into a simple flat array.

Dependcies

  • NodeJS
  • NPM
  • Grunt CLI

Install

After cloning the code

  • Run npm install from the root of the project to get all node modules
  • Run grunt mocha-test to run the test suite which also creates a coverage report
  • Run node main.js to run the example using the flatten utility function, you can supply your own file by running node main.js -f path/to/file - for example node main.js -f ./tests/files/test

About

Simple exercise code in NodeJS for showcasing recursive array flattening function

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published