Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/proc/tests/deps/asynciter.ts>AsyncIter#filter

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
method AsyncIter.prototype.filter
import { AsyncIter } from "https://deno.land/x/proc@0.20.5/tests/deps/asynciter.ts";

Filter the sequence to contain just the items that pass a test.

Parameters

filterFn: (item: T) => boolean | Promise<boolean>

The filter function.

Returns

An iterator returning the values that passed the filter function.