1 | var _curry2 =
|
2 | /*#__PURE__*/
|
3 | require("./internal/_curry2");
|
4 | /**
|
5 | * Exclusive disjunction logical operation.
|
6 | * Returns `true` if one of the arguments is truthy and the other is falsy.
|
7 | * Otherwise, it returns `false`.
|
8 | *
|
9 | * @func
|
10 | * @memberOf R
|
11 | * @since v0.27.0
|
12 | * @category Logic
|
13 | * @sig a -> b -> Boolean
|
14 | * @param {Any} a
|
15 | * @param {Any} b
|
16 | * @return {Boolean} true if one of the arguments is truthy and the other is falsy
|
17 | * @see R.or, R.and
|
18 | * @example
|
19 | *
|
20 | * R.xor(true, true); //=> false
|
21 | * R.xor(true, false); //=> true
|
22 | * R.xor(false, true); //=> true
|
23 | * R.xor(false, false); //=> false
|
24 | */
|
25 |
|
26 |
|
27 | var xor =
|
28 | /*#__PURE__*/
|
29 | _curry2(function xor(a, b) {
|
30 | return Boolean(!a ^ !b);
|
31 | });
|
32 |
|
33 | module.exports = xor; |
\ | No newline at end of file |