Skip to content

log

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

Defined in: Composition/tap.ts:201

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

A

LogOptions<A>

(a) => A

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