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