GraphReFlyTS

API Reference

find()

find: emit the first value matching pred, then COMPLETE. EDGE (RxJS divergence, flagged): RxJS find emits undefined then COMPLETE when nothing matched — but undefined IS the SENTINEL (R-sentinel), so a not-found source COMPLETE here emits a bare COMPLETE (no value).

Import

import { find } from "@graphrefly/ts/operators";

Signature

function find(pred: (v: S) => boolean): Operator<S, S>

Parameters

ParameterTypeDescription
pred(v: S) => booleanpred value used by the helper.

Returns

A Operator<S, S> value.

Example

import { find } from "@graphrefly/ts/operators";

Source

packages/ts/src/graph/operators.ts