Calls a Callback for each element of an Iterable.
Print all elements
const printAll = tap(x => console.log(x));printAll([1, 2, 3]); // 1, 2, 3
forEach and map for similar operations
the Iterable value type
the Callback to call
Generated using TypeDoc
Calls a Callback for each element of an Iterable.
Example
Print all elements
See
forEach and map for similar operations