Skip to content

Latest commit

 

History

History
18 lines (11 loc) · 609 Bytes

README.md

File metadata and controls

18 lines (11 loc) · 609 Bytes

De-duplicate Array Exercise

This is a simple Nodejs application that is an exercise in writing a utility function to take an array of numbers and removes duplicates from the 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