Module

x/rambda/immutable.d.ts>either

Faster and smaller alternative to Ramda
Go to Latest
function either
import { either } from "https://dotland.deno.dev/x/rambda@v9.2.0/immutable.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