main
Last change
on this file since d24f17c was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
730 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | var _curry2 =
|
---|
| 2 | /*#__PURE__*/
|
---|
| 3 | require("./internal/_curry2.js");
|
---|
| 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.1
|
---|
| 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; |
---|
Note:
See
TracBrowser
for help on using the repository browser.