Skip to main content
Module

x/rambda/immutable.d.ts>filter

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

It filters list or object input using a predicate function.

Parameters

predicate: Predicate<T>

Returns

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

Parameters

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

Returns

readonly T[]