source: node_modules/ramda-adjunct/lib/isFalsy.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");
6var _isTruthy = _interopRequireDefault(require("./isTruthy"));
7function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8/**
9 * A falsy value is a value that translates to false when evaluated in a Boolean context.
10 * Falsy values are `false`, `0`, `""`, `null`, `undefined`, and `NaN`.
11 *
12 * @func isFalsy
13 * @memberOf RA
14 * @since {@link https://char0n.github.io/ramda-adjunct/2.2.0|v2.2..0}
15 * @category Type
16 * @sig * -> Boolean
17 * @param {*} val The value to test
18 * @return {boolean}
19 * @see {@link https://developer.mozilla.org/en-US/docs/Glossary/Falsy|falsy}, {@link RA.isTruthy|isTruthy}
20 * @example
21 *
22 * RA.isFalsy(false); // => true
23 * RA.isFalsy(0); // => true
24 * RA.isFalsy(''); // => true
25 * RA.isFalsy(null); // => true
26 * RA.isFalsy(undefined); // => true
27 * RA.isFalsy(NaN); // => true
28 */
29var isFalsy = (0, _ramda.complement)(_isTruthy["default"]);
30var _default = isFalsy;
31exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.