Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

first

import { first } from "https://raw.githubusercontent.com/surma/observables-with-streams/28c55be6d855780c677fd1f4ba975f4d3144891d/src/index.ts";

Returns a Transform that emits the first item in an observable. The source observable will be drained after.

function first<T>(): Transform<T>;
§
first<T>(): Transform<T>
[src]

§Type Parameters

§Return Type

§

Transform that emits the first item emitted by the observable.