UNPKG

ramda-extension

Version:

Helpful functions built on top of the mighty Ramda

36 lines (31 loc) 858 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _ramda = require("ramda"); /* eslint-disable max-len */ /** * Return negation of native isNaN function. * * @func * @category Logic * * @example * * R_.isNotNaN(0) // true * R_.isNotNaN('') // true * R_.isNotNaN([]) // true * R_.isNotNaN(null) // true * R_.isNotNaN({}) // false * R_.isNotNaN(NaN) // false * R_.isNotNaN(undefined) // false * * @see http://stackoverflow.com/questions/9716468/is-there-any-function-like-isnumeric-in-javascript-to-validate-numbers * * @sig a -> Boolean */ var isNotNaN = (0, _ramda.complement)(isNaN); var _default = isNotNaN; /* eslint-enable max-len */ exports.default = _default;