Skip to content
PACKAGES

flatMap()

flatMap: alias of {@link mergeMap} (RxJS naming parity).

import { flatMap } from "@graphrefly/ts/operators";
function flatMap(
project: Project<TIn, TOut>,
opts: MergeMapOptions = {},
): Operator<TIn, TOut>
ParameterTypeDescription
projectProject<TIn, TOut>project value used by the helper.
optsMergeMapOptionsOptions that configure the helper.

A Operator<TIn, TOut> value.

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

packages/ts/src/graph/higher-order.ts