Flattens one level of nesting from an array of arrays.
An array of arrays to flatten.
flattenArray([[1, 2], [3, 4], [5]]) // => [1, 2, 3, 4, 5]flattenArray([["a", "b"], ["c"]]) // => ["a", "b", "c"] Copy
flattenArray([[1, 2], [3, 4], [5]]) // => [1, 2, 3, 4, 5]flattenArray([["a", "b"], ["c"]]) // => ["a", "b", "c"]
Flattens one level of nesting from an array of arrays.