This commit is contained in:
Dawid Dziurla 2020-03-26 15:37:35 +01:00
parent d9becc67b6
commit 9308795b8b
No known key found for this signature in database
GPG key ID: 7B6D8368172E9B0B
964 changed files with 104265 additions and 16 deletions

33
node_modules/ramda/src/xor.js generated vendored Normal file
View file

@ -0,0 +1,33 @@
var _curry2 =
/*#__PURE__*/
require("./internal/_curry2");
/**
* Exclusive disjunction logical operation.
* Returns `true` if one of the arguments is truthy and the other is falsy.
* Otherwise, it returns `false`.
*
* @func
* @memberOf R
* @since v0.27.0
* @category Logic
* @sig a -> b -> Boolean
* @param {Any} a
* @param {Any} b
* @return {Boolean} true if one of the arguments is truthy and the other is falsy
* @see R.or, R.and
* @example
*
* R.xor(true, true); //=> false
* R.xor(true, false); //=> true
* R.xor(false, true); //=> true
* R.xor(false, false); //=> false
*/
var xor =
/*#__PURE__*/
_curry2(function xor(a, b) {
return Boolean(!a ^ !b);
});
module.exports = xor;