Transform the values of an iterable with a mapping function.
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]
The iterable object of interest.
The mapping function to invoke for each value.
Generated using TypeDoc
Transform the values of an iterable with a mapping function.
Returns
An iterator which yields the transformed values.
Example