Given an array of nested arrays, return a new array that is flattened.
// input: const a = [[1, 2], [3, 4], [5, 6]] // output: [1, 2, 3, 4, 5, 6]
/* output */