Skip to main content
Module

x/aitertools/take.ts

Well-tested utility functions dealing with async iterables
Go to Latest
import * as aitertools from "https://deno.land/x/aitertools@0.3.1/take.ts";

Functions

Takes a specified number of elements from the beginning of an async iterable.

Takes elements from the beginning of an async iterable as long as a specified condition is met. If the condition is not met, the iterable stops.