Skip to content

tap

tap<R, A>(f): (data) => Reader<R, A>

Defined in: Core/Reader.ts:133

Executes a side effect on the produced value without changing the Reader. Useful for logging or debugging inside a pipeline.

R

A

(a) => void

(data): Reader<R, A>

Reader<R, A>

Reader<R, A>

pipe(
  buildUrl("/users"),
  Reader.tap(url => console.log("Requesting:", url)),
  Reader.chain(addAuth)
)(appConfig);