Skip to main content
Module

x/rambda/index.d.ts>either

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

It returns a new predicate function from firstPredicate and secondPredicate inputs.

This predicate function will return true, if any of the two input predicates return true.

Parameters

firstPredicate: Pred
secondPredicate: Pred

Parameters

firstPredicate: Predicate<T>
secondPredicate: Predicate<T>

Returns

Predicate<T>

Parameters

firstPredicate: Predicate<T>

Returns

(secondPredicate: Predicate<T>) => Predicate<T>

Parameters

firstPredicate: Pred

Returns

(secondPredicate: Pred) => Pred