Skip to content

@epikodelabs/streamix


@epikodelabs/streamix / switchMap

Function: switchMap()

switchMap<T, R>(project): Operator<T, R>

Defined in: projects/libraries/streamix/src/lib/operators/switchMap.ts:20

Projects each source value to a Stream which is merged into the output Stream, emitting values only from the most recently projected Stream.

Type Parameters

T

T = any

R

R = any

Parameters

project

(value, index) => Stream<R> | MaybePromise<R> | R[]

Returns

Operator<T, R>

Released under the MIT License.