source: node_modules/ramda-adjunct/lib/isNotNaN.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.2 KB
RevLine 
[d24f17c]1"use strict";
2
3exports.__esModule = true;
4exports["default"] = void 0;
5var _ramda = require("ramda");
6var _isNaN2 = _interopRequireDefault(require("./isNaN"));
7function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
8/**
9 * Checks whether the passed value is complement of `NaN` and its type is not `Number`.
10 *
11 * @func isNotNaN
12 * @memberOf RA
13 * @since {@link https://char0n.github.io/ramda-adjunct/0.6.0|v0.6.0}
14 * @category Type
15 * @sig * -> Boolean
16 * @param {*} val The value to test
17 * @return {boolean}
18 * @see {@link RA.isNaN|isNaN}
19 * @example
20 *
21 * RA.isNotNaN(NaN); // => false
22 * RA.isNotNaN(Number.NaN); // => false
23 * RA.isNotNaN(0 / 0); // => false
24 *
25 * RA.isNotNaN('NaN'); // => true
26 * RA.isNotNaN(undefined); // => true
27 * RA.isNotNaN({}); // => true
28 * RA.isNotNaN('blabla'); // => true
29 *
30 * RA.isNotNaN(true); // => true
31 * RA.isNotNaN(null); // => true
32 * RA.isNotNaN(37); // => true
33 * RA.isNotNaN('37'); // => true
34 * RA.isNotNaN('37.37'); // => true
35 * RA.isNotNaN(''); // => true
36 * RA.isNotNaN(' '); // => true
37 */
38var isNotNaN = (0, _ramda.complement)(_isNaN2["default"]);
39var _default = isNotNaN;
40exports["default"] = _default;
Note: See TracBrowser for help on using the repository browser.