source: node_modules/ramda-adjunct/lib/nand.js

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: 841 bytes
Line 
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _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 */
28var nand = (0, _ramda.complement)(_ramda.and); // eslint-disable-line ramda/complement-simplification
29var _default = nand;
30exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.