Skip to main content
Module

x/ramda/mod.ts>whereAny

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

Takes a spec object and a test object; each of the spec's own properties must be a predicate function. Each predicate is applied to the value of the corresponding property of the test object. whereAny returns true if at least one of the predicates return true, false otherwise.

whereAny is well suited to declaratively expressing constraints for other functions such as filter and find.