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>AbstractAsyncIter#filter

A better way to work with processes in Deno.
Go to Latest
method AbstractAsyncIter.prototype.filter
import { AbstractAsyncIter } from "https://deno.land/x/proc@0.21.0/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.