deno.land / x / rambda@v9.1.1 / source / either.js

نووسراو ببینە
1
2
3
4
5
6
7
8
9
export function either(firstPredicate, secondPredicate){ if (arguments.length === 1){ return _secondPredicate => either(firstPredicate, _secondPredicate) }
return (...input) => Boolean(firstPredicate(...input) || secondPredicate(...input))}
rambda

Version Info

Tagged at
2 months ago