Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/rambda/mod.ts>either

Faster and smaller alternative to Ramda
Go to Latest
function either
import { either } from "https://deno.land/x/rambda@9.2.1/mod.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