action-debian-package/node_modules/ramda/src/not.js
Dawid Dziurla 9308795b8b
update
2020-03-26 15:37:35 +01:00

31 lines
629 B
JavaScript

var _curry1 =
/*#__PURE__*/
require("./internal/_curry1");
/**
* A function that returns the `!` of its argument. It will return `true` when
* passed false-y value, and `false` when passed a truth-y one.
*
* @func
* @memberOf R
* @since v0.1.0
* @category Logic
* @sig * -> Boolean
* @param {*} a any value
* @return {Boolean} the logical inverse of passed argument.
* @see R.complement
* @example
*
* R.not(true); //=> false
* R.not(false); //=> true
* R.not(0); //=> true
* R.not(1); //=> false
*/
var not =
/*#__PURE__*/
_curry1(function not(a) {
return !a;
});
module.exports = not;