source: node_modules/ramda-adjunct/src/nor.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: 750 bytes
Line 
1import { or, complement } from 'ramda';
2
3/**
4 * Returns true if both arguments are falsy; false otherwise.
5 *
6 * @func nor
7 * @memberOf RA
8 * @since {@link https://char0n.github.io/ramda-adjunct/2.20.0|v2.20.0}
9 * @category Logic
10 * @sig a -> b -> a ⊽ b
11 * @param {*} a
12 * @param {*} b
13 * @return {boolean} true if both arguments are falsy
14 * @see {@link RA.neither|neither}
15 * @example
16 *
17 * RA.nor(true, true); //=> false
18 * RA.nor(false, true); //=> false
19 * RA.nor(true, false); //=> false
20 * RA.nor(false, false); //=> true
21 * RA.nor(1, 1); //=> false
22 * RA.nor(1, 0); //=> false
23 * RA.nor(0, 1); //=> false
24 * RA.nor(0, 0); //=> true
25 */
26const nor = complement(or); // eslint-disable-line ramda/complement-simplification
27
28export default nor;
Note: See TracBrowser for help on using the repository browser.