Skip to main content
Module

x/rambda/source/either.js

Faster and smaller alternative to Ramda
Go to Latest
File
export function either(firstPredicate, secondPredicate) { if (arguments.length === 1) { return _secondPredicate => either(firstPredicate, _secondPredicate) }
return (...input) => Boolean(firstPredicate(...input) || secondPredicate(...input))}