1 | var _curry2 =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_curry2");
|
4 | /**
|
5 | * Returns `true` if one or both of its arguments are `true`. Returns `false`
|
6 | * if both arguments are `false`.
|
7 | *
|
8 | * @func
|
9 | * @memberOf R
|
10 | * @since v0.1.0
|
11 | * @category Logic
|
12 | * @sig a -> b -> a | b
|
13 | * @param {Any} a
|
14 | * @param {Any} b
|
15 | * @return {Any} the first argument if truthy, otherwise the second argument.
|
16 | * @see R.either, R.xor
|
17 | * @example
|
18 | *
|
19 | * R.or(true, true); //=> true
|
20 | * R.or(true, false); //=> true
|
21 | * R.or(false, true); //=> true
|
22 | * R.or(false, false); //=> false
|
23 | */
|
24 |
|
25 |
|
26 | var or =
|
27 | /*#__PURE__*/
|
28 | _curry2(function or(a, b) {
|
29 | return a || b;
|
30 | });
|
31 |
|
32 | module.exports = or; |
\ | No newline at end of file |