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

x/itertools/mod.ts>ifilter

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

Returns an iterator that filters elements from iterable returning only those for which the predicate is true.

Parameters

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

Returns

Iterable<T>