maxmckenzie
2/24/2017 - 3:53 PM

flattern-array.js

// Spread operirators baby

var Array = [[1, 2],[3, 4, 5], [6, 7, 8, 9]];
var result = [].concat(...Array);
console.log(result);