Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/itertools/mod.ts>filter

🦕 A TypeScript port of Python's itertools and more-itertools for Deno
Go to Latest
function filter
import { filter } from "https://deno.land/x/itertools@v1.1.1/mod.ts";

Non-lazy version of ifilter().

Parameters

iterable: Iterable<T>
predicate: Predicate<T>

Returns

Array<T>