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

x/rambda/rambda.js>either

Faster and smaller alternative to Ramda
Latest
function either
import { either } from "https://deno.land/x/rambda@9.4.1/rambda.js";

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>

Returns

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

Parameters

firstPredicate: Pred

Returns

(secondPredicate: Pred) => Pred