flatten()
Flatten an Enumerable.
Returns
(Enumerable): new flatten Enumerable.
Example
// using any
Enumerable
.from([1, 2, [3, 4], [5]])
.flatten()
.toArray();
// [1, 2, 3, 4, 5]
flatten()
Flatten an Enumerable.
(Enumerable): new flatten Enumerable.
// using any
Enumerable
.from([1, 2, [3, 4], [5]])
.flatten()
.toArray();
// [1, 2, 3, 4, 5]