Skip to content

tap

tap<A>(f): <B>(data) => These<A, B>

Defined in: Core/These.ts:273

Executes a side effect on the first value without changing the These. Useful for logging or debugging.

A

(a) => void

<B>(data): These<A, B>

B

These<A, B>

These<A, B>

pipe(These.first(5), These.tap(console.log)); // logs 5, returns First(5)