UNPKG

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