Skip to content

find()

Emits the first value that satisfies predicate, then completes; no emission if upstream ends first.

Signature

ts
function find<A>(predicate: (value: A) => boolean): StoreOperator<A, A | undefined>

Parameters

ParameterTypeDescription
predicate(value: A) =&gt; booleanTest for each upstream value.

Returns

StoreOperator&lt;A, A | undefined&gt; — Tier 1.

Released under the MIT License.