API Reference
flatMap()
flatMap: alias of {@link mergeMap} (RxJS naming parity).
Import
import { flatMap } from "@graphrefly/ts/operators";
Signature
function flatMap(
project: Project<TIn, TOut>,
opts: MergeMapOptions = {},
): Operator<TIn, TOut>
Parameters
| Parameter | Type | Description |
|---|---|---|
project | Project<TIn, TOut> | project value used by the helper. |
opts | MergeMapOptions | Options that configure the helper. |
Returns
A Operator<TIn, TOut> value.
Example
import { flatMap } from "@graphrefly/ts/operators";
Source
packages/ts/src/graph/higher-order.ts