Flatten an array of arbitrarily nested arrays of integers into a flat array of integers.
// Both CommonJS and ES6 import syntaxes are supported
// import flatten from './flatten'
const flatten = require('./flatten')
flatten([[1,2,[3]],4]) // [1, 2, 3 , 4]Launch
node flatten.test.js