Skip to content

Function: flatMap()

flatMap<T, U>(source, callback): Sequence<U>

Same semantics as Array.prototype.flatMap, over a single Container.

T

U

Source<T>

The container to map (nullish yields an empty sequence).

(value, index) => U | readonly U[]

Returns a value or array of values, flattened one level.

Sequence<U>