Skip to main content
Module

x/ramda/mod.ts>filter

:ram: Practical functional Javascript
Latest
variable filter
import { filter } from "https://deno.land/x/ramda@v0.27.2/mod.ts";

Takes a predicate and a Filterable, and returns a new filterable of the same type containing the members of the given filterable which satisfy the given predicate. Filterable objects include plain objects or any object that has a filter method such as Array.

Dispatches to the filter method of the second argument, if present.

Acts as a transducer if a transformer is given in list position.