Returns a 'flattened' copy of array, un-nesting arrays one level. Streaming: works with unlimited iterables.
flatten([1, [2, 3], [[4]]]);// Yields: [1, 2, 3, [4]]; Copy
flatten([1, [2, 3], [[4]]]);// Yields: [1, 2, 3, [4]];
Returns a 'flattened' copy of array, un-nesting arrays one level. Streaming: works with unlimited iterables.
Param: it