This project has been succeeded by GraphReFly. New development happens at graphrefly-ts. npm install @graphrefly/graphrefly
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.