ramda-adjunct
Version:
Ramda Adjunct is the most popular and most comprehensive set of utilities for use with Ramda, providing a variety of useful, well tested functions with excellent documentation.
44 lines (39 loc) • 1.2 kB
JavaScript
"use strict";
exports.__esModule = true;
exports["default"] = void 0;
var _ramda = require("ramda");
var _isNaN2 = _interopRequireDefault(require("./isNaN"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
/**
* Checks whether the passed value is complement of `NaN` and its type is not `Number`.
*
* @func isNotNaN
* @memberOf RA
* @since {@link https://char0n.github.io/ramda-adjunct/0.6.0|v0.6.0}
* @category Type
* @sig * -> Boolean
* @param {*} val The value to test
* @return {boolean}
* @see {@link RA.isNaN|isNaN}
* @example
*
* RA.isNotNaN(NaN); // => false
* RA.isNotNaN(Number.NaN); // => false
* RA.isNotNaN(0 / 0); // => false
*
* RA.isNotNaN('NaN'); // => true
* RA.isNotNaN(undefined); // => true
* RA.isNotNaN({}); // => true
* RA.isNotNaN('blabla'); // => true
*
* RA.isNotNaN(true); // => true
* RA.isNotNaN(null); // => true
* RA.isNotNaN(37); // => true
* RA.isNotNaN('37'); // => true
* RA.isNotNaN('37.37'); // => true
* RA.isNotNaN(''); // => true
* RA.isNotNaN(' '); // => true
*/
var isNotNaN = (0, _ramda.complement)(_isNaN2["default"]);
var _default = isNotNaN;
exports["default"] = _default;