Skip to main content
Module

x/rambda/index.d.ts>anyPass

Faster and smaller alternative to Ramda
Go to Latest
function anyPass
import { anyPass } from "https://deno.land/x/rambda@v8.4.0/index.d.ts";

It accepts list of predicates and returns a function. This function with its input will return true, if any of predicates returns true for this input.

Type Parameters

T
U extends T[]

Parameters

predicates: [K in keyof U]: (x: T) => x is U[K]

Returns

(input: T) => input is U[number]

Parameters

predicates: ((x: T) => boolean)[]

Returns

(input: T) => boolean

Parameters

predicates: ((...inputs: T[]) => boolean)[]

Returns

(...inputs: T[]) => boolean