Flatten an array of arbitrarily nested arrays of values into a flat array of values
// import flattenArray from './flattenArray'
const flattenArray = require('./flattenArray')
flattenArray([[1,2,[3]],4]) // [1, 2, 3 , 4]
Tests are realized with Mocha and Chai.
- Download or checkout the project
- Open index.html in your browser