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

take

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

Returns a Transform that emits the first n items from the original observable.

function take<T>(n: number): Transform<T>;
§
take<T>(n: number): Transform<T>
[src]

§Type Parameters

§Parameters

§
n: number
[src]

Maximum number of items to emit.

§Return Type

§

Transform that emits some items from the original observable.