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

x/rambda/immutable.d.ts>filter

Faster and smaller alternative to Ramda
Latest
function filter
import { filter } from "https://deno.land/x/rambda@9.4.1/immutable.d.ts";

It filters list or object input using a predicate function.

Returns

(input: readonly T[]) => readonly T[]

Parameters

predicate: Predicate<T>
input: readonly T[]

Returns

readonly T[]