tap
tap<
A>(f): (a) =>A
Defined in: Composition/tap.ts:30
Executes a side effect function and returns the original value unchanged. Useful for logging, debugging, or other side effects within a pipeline.
Type Parameters
Section titled “Type Parameters”A
Parameters
Section titled “Parameters”(a) => void
Returns
Section titled “Returns”(
a):A
Parameters
Section titled “Parameters”A
Returns
Section titled “Returns”A
Example
Section titled “Example”Option.tap for Option-specific tap that only runs on Some