Skip to content

Function: tap() ​

tap<T>(value, callback): T

Defined in: src/runtime.ts:25

Execute a callback and return the given value Useful for side effects in a chain

Type Parameters ​

T ​

T

Parameters ​

value ​

T

The value to pass to the callback

callback ​

(value) => void

The callback to execute

Returns ​

T

The original value

Documentation of 1.0.13 , built from cf61d3b on 1.0.13 by pipeline #2985011498 on 2026-10-21.