Flattens array a single level deep.
array
Returns the new flattened array.
5.4.0
[[flatMap]],[[flatMapDeep]],[[flatMapDepth]],[[flattenDeep]],[[flattenDepth]]
flatten([1, [2, [3, [4]], 5]])// => [1, 2, [3, [4]], 5] Copy
flatten([1, [2, [3, [4]], 5]])// => [1, 2, [3, [4]], 5]
Flattens
array
a single level deep.