Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/stream_observables/mod.ts>switchMap

A collection of observables built with ReadableStreams & friends.
Latest
function switchMap
import { switchMap } from "https://deno.land/x/stream_observables@v1.3/mod.ts";

Converts each emitted item to an observable, producing values only from the most recent observable in the sequence.

Returns

Transform that emits items from the most recent observable created by projecting values from the outer observable.