source: node_modules/ramda-adjunct/lib/isFalse.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: 1.0 KB
Line 
1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6/**
7 * Checks if input value is the Boolean primitive `false`. Will return false for all values created
8 * using the `Boolean` function as a constructor.
9 *
10 * @func isFalse
11 * @memberOf RA
12 * @since {@link https://char0n.github.io/ramda-adjunct/2.6.0|v2.6.0}
13 * @category Type
14 * @sig * -> Boolean
15 * @param {*} val The value to test
16 * @return {boolean}
17 * @see {@link RA.isTrue|isTrue}, {@link RA.isTruthy|isTruthy}, {@link RA.isFalsy|isFalsy}
18 * @example
19 *
20 * RA.isFalse(false); // => true
21 * RA.isFalse(Boolean(false)); // => true
22 * RA.isFalse(true); // => false
23 * RA.isFalse(0); // => false
24 * RA.isFalse(''); // => false
25 * RA.isFalse(null); // => false
26 * RA.isFalse(undefined); // => false
27 * RA.isFalse(NaN); // => false
28 * RA.isFalse([]); // => false
29 * RA.isFalse(new Boolean(false)); // => false
30 */
31
32var isFalse = (0, _ramda.curryN)(1, (0, _ramda.identical)(false));
33var _default = isFalse;
34exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.