Skip to content

Function: map()

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

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

T

U

Source<T>

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

(value, index) => U

Called per element with its index; its result is emitted.

Sequence<U>