Maps every element of an Iterable using a Mapper function.
Square all numbers
const square = map(x => x * x);const result = square([1, 2, 3]);console.log(result); // [1, 4, 9]
flatMap, groupBy, and reduce for similar operations.
an Iterable that emits all mapped elements
the source Iterable value type
the target Iterable value type
Generated using TypeDoc
Maps every element of an Iterable using a Mapper function.
Example
Square all numbers
See
flatMap, groupBy, and reduce for similar operations.
Returns
an Iterable that emits all mapped elements