1 | "use strict";
|
---|
2 |
|
---|
3 | exports.__esModule = true;
|
---|
4 | exports["default"] = void 0;
|
---|
5 | var _ramda = require("ramda");
|
---|
6 | var _isNaN2 = _interopRequireDefault(require("./isNaN"));
|
---|
7 | function _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 | */
|
---|
38 | var isNotNaN = (0, _ramda.complement)(_isNaN2["default"]);
|
---|
39 | var _default = isNotNaN;
|
---|
40 | exports["default"] = _default; |
---|