Function: map()
map<
T,U>(source,callback):Sequence<U>
Same semantics as Array.prototype.map, over a single Container.
Type Parameters
Section titled “Type Parameters”T
U
Parameters
Section titled “Parameters”source
Section titled “source”Source<T>
The container to map (nullish yields an empty sequence).
callback
Section titled “callback”(value, index) => U
Called per element with its index; its result is emitted.
Returns
Section titled “Returns”Sequence<U>