console.log(arrays.reduce(function(a, b) {
    return a.concat(b);
}));

let arrays = [[1, 2, 3], [4, 5], [6]];

let array = arrays.reduce((a, b) => a.concat(b));
console.log(array);
// → [1, 2, 3, 4, 5, 6]

Add Chapter 05, exercise 1
Add Chapter 05, exercise 1
