Flatten an array of nested integer arrays.
var flatten = require("flatten");
flatten([1, 2, [3, 4, [5, 6], 7], 8]); // [1, 2, 3, 4, 5, 6, 7, 8]
To run tests, do npm test
. Requires mocha. To install the development dependencies for testing use npm install