Skip to content

tap()

Runs fn for each value then re-emits it unchanged (Tier 1).

Signature

ts
function tap<A>(fn: (value: A) => void): StoreOperator<A, A>

Parameters

ParameterTypeDescription
fn(value: A) =&gt; voidObserver side effect.

Returns

StoreOperator&lt;A, A&gt;

Released under the MIT License.