MCPcopy
hub / github.com/tdewolff/minify / isNaN

Function isNaN

_benchmarks/sample_victory.js:18254–18259  ·  view source on GitHub ↗

* Checks if `value` is `NaN`. * * **Note:** This method is based on * [`Number.isNaN`](https://mdn.io/Number/isNaN) and is not the same as * global [`isNaN`](https://mdn.io/isNaN) which returns `true` for * `undefined` and other non-number values. * * @static * @memberOf _ * @since 0.1.0 *

(value)

Source from the content-addressed store, hash-verified

18252 * // => false
18253 */
18254function isNaN(value) {
18255 // An `NaN` primitive is the only value that is not equal to itself.
18256 // Perform the `toStringTag` check first to avoid errors with some
18257 // ActiveX objects in IE.
18258 return isNumber(value) && value != +value;
18259}
18260
18261module.exports = isNaN;
18262

Callers 15

computeConstantValueFunction · 0.85
isValidFunction · 0.85
set$1Function · 0.85
daysInMonthFunction · 0.85
parseWeekdayFunction · 0.85
parseIsoWeekdayFunction · 0.85
isDurationValidFunction · 0.85
createDurationFunction · 0.85
parseIsoFunction · 0.85
createAdderFunction · 0.85
isNumericFunction · 0.85
sortGradientFunction · 0.85

Calls 1

isNumberFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…