logical-or
Binary logical OR operator (||) as an auto-curried function.
npm install logical-or --save
You can also use Duo, Bower or download the files manually.
npm stats
Overview
Returns expr1
if it can be converted to true; otherwise, returns expr2
. Thus, when used with Boolean values, || returns true if either operand is true; if both are false, returns false.
API Example
Pointful
var or = //=> 1
Pointfree Style
var or = var prices = '$ 50.00' '' '$ 20.00' prices//=> ['$ 50.00', 'Price unknown', '$ 20.00']
API
or(expr2, expr1)
please note the argument order.
arguments
expr2 (mixed)
.expr1 (mixed)
.
returns
(mixed)
Returnsexpr1
if it can be converted to true; otherwise, returnsexpr2
.
Related
Contributing
SEE: contributing.md