Edit This Page

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]

Aliases