ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
29 lines (28 loc) • 831 B
JavaScript
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
/**
* Returns false if both arguments are truthy; true otherwise.
*
* @func nand
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/2.19.0|v2.19.0}
* @category Logic
* @sig a -> b -> Boolean
* @param {*} a
* @param {*} b
* @return {Boolean} false if both arguments are truesy
* @example
*
* RA.nand(true, true); //=> false
* RA.nand(false, true); //=> true
* RA.nand(true, false); //=> true
* RA.nand(false, false); //=> true
* RA.nand(1.0, 1.0); //=> false
* RA.nand(1.0, 0); //=> true
* RA.nand(0, 1.0); //=> true
* RA.nand(0, 0); //=> true
*/
var nand = (0, _ramda.complement)(_ramda.and); // eslint-disable-line ramda/complement-simplification
var _default = exports["default"] = nand;
;