The iterable object of interest.
The mapping function to invoke for each value.
An iterator which yields the transformed values.
import { map } from '@lumino/algorithm';
let data = [1, 2, 3];
let stream = map(data, value => value * 2);
Array.from(stream); // [2, 4, 6]
Generated using TypeDoc
Transform the values of an iterable with a mapping function.