Skip to content

tapLog

tapLog<A>(options?): (a) => A

Defined in: Composition/tap.ts:66

Logs the piped value to the console or a custom logger, returning the value unchanged.

A

Options<A>

(a) => A

pipe(
  42,
  tapLog(), // logs: 42
  tapLog({ label: "Count" }) // logs: [Count]: 42
);