main
Last change
on this file was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
632 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | var _curry1 =
|
---|
| 2 | /*#__PURE__*/
|
---|
| 3 | require("./internal/_curry1.js");
|
---|
| 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 |
|
---|
| 25 | var not =
|
---|
| 26 | /*#__PURE__*/
|
---|
| 27 | _curry1(function not(a) {
|
---|
| 28 | return !a;
|
---|
| 29 | });
|
---|
| 30 |
|
---|
| 31 | module.exports = not; |
---|
Note:
See
TracBrowser
for help on using the repository browser.