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

x/proc/mod3.ts>Enumerable#filter

A high-level way to run child processes that is easy, flexible, powerful, and prevents resource leaks.
Go to Latest
method Enumerable.prototype.filter
Re-export
import { Enumerable } from "https://deno.land/x/proc@0.20.25/mod3.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.