Flatten an array
flattenArray([[1,2,3],[4,5,6]]) === [1,2,3,4,5,6] Copy
flattenArray([[1,2,3],[4,5,6]]) === [1,2,3,4,5,6]
Array that should be flattened
Generated using TypeDoc
Flatten an array
Example