UNPKG

629 BJavaScriptView Raw
1var _curry1 =
2/*#__PURE__*/
3require("./internal/_curry1");
4/**
5 * A function that returns the `!` of its argument. It will return `true` when
6 * passed false-y value, and `false` when passed a truth-y one.
7 *
8 * @func
9 * @memberOf R
10 * @since v0.1.0
11 * @category Logic
12 * @sig * -> Boolean
13 * @param {*} a any value
14 * @return {Boolean} the logical inverse of passed argument.
15 * @see R.complement
16 * @example
17 *
18 * R.not(true); //=> false
19 * R.not(false); //=> true
20 * R.not(0); //=> true
21 * R.not(1); //=> false
22 */
23
24
25var not =
26/*#__PURE__*/
27_curry1(function not(a) {
28 return !a;
29});
30
31module.exports = not;
\No newline at end of file