API Reference
elementAt()
elementAt: emit the value at zero-based index, then COMPLETE. EDGE (RxJS divergence, flagged): RxJS throws ArgumentOutOfRangeError if the source completes before index; we COMPLETE without a value (no throw), consistent with last/find.
Import
import { elementAt } from "@graphrefly/ts/operators";
Signature
function elementAt(index: number): Operator<S, S>
Parameters
| Parameter | Type | Description |
|---|---|---|
index | number | index value used by the helper. |
Returns
A Operator<S, S> value.
Example
import { elementAt } from "@graphrefly/ts/operators";
Source
packages/ts/src/graph/operators.ts