main
Last change
on this file since 65b6638 was d24f17c, checked in by Aleksandar Panovski <apano77@…>, 15 months ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
841 bytes
|
Rev | Line | |
---|
[d24f17c] | 1 | "use strict";
|
---|
| 2 |
|
---|
| 3 | exports.__esModule = true;
|
---|
| 4 | exports["default"] = void 0;
|
---|
| 5 | var _ramda = require("ramda");
|
---|
| 6 | /**
|
---|
| 7 | * Returns false if both arguments are truthy; true otherwise.
|
---|
| 8 | *
|
---|
| 9 | * @func nand
|
---|
| 10 | * @memberOf RA
|
---|
| 11 | * @since {@link https://char0n.github.io/ramda-adjunct/2.19.0|v2.19.0}
|
---|
| 12 | * @category Logic
|
---|
| 13 | * @sig a -> b -> Boolean
|
---|
| 14 | * @param {*} a
|
---|
| 15 | * @param {*} b
|
---|
| 16 | * @return {Boolean} false if both arguments are truesy
|
---|
| 17 | * @example
|
---|
| 18 | *
|
---|
| 19 | * RA.nand(true, true); //=> false
|
---|
| 20 | * RA.nand(false, true); //=> true
|
---|
| 21 | * RA.nand(true, false); //=> true
|
---|
| 22 | * RA.nand(false, false); //=> true
|
---|
| 23 | * RA.nand(1.0, 1.0); //=> false
|
---|
| 24 | * RA.nand(1.0, 0); //=> true
|
---|
| 25 | * RA.nand(0, 1.0); //=> true
|
---|
| 26 | * RA.nand(0, 0); //=> true
|
---|
| 27 | */
|
---|
| 28 | var nand = (0, _ramda.complement)(_ramda.and); // eslint-disable-line ramda/complement-simplification
|
---|
| 29 | var _default = nand;
|
---|
| 30 | exports["default"] = _default; |
---|
Note:
See
TracBrowser
for help on using the repository browser.