Taps into each value, without changing the output, for logging or debugging.
import {pipe, tap} from 'iter-ops';const i = pipe( 'text', tap(a => { console.log(a); //=> t e x t })); //=> IterableExt<string>const result = [...i]; // t e x t Copy
import {pipe, tap} from 'iter-ops';const i = pipe( 'text', tap(a => { console.log(a); //=> t e x t })); //=> IterableExt<string>const result = [...i]; // t e x t
Taps into each value, without changing the output, for logging or debugging.