2026-05-31 13:54:31 +02:00

19 lines
391 B
JavaScript

//#region src/compat/predicate/isNaN.ts
/**
* Checks if the value is NaN.
*
* @param {any} value - The value to check.
* @returns {boolean} `true` if the value is NaN, `false` otherwise.
*
* @example
* isNaN(NaN); // true
* isNaN(0); // false
* isNaN('NaN'); // false
* isNaN(undefined); // false
*/
function isNaN(value) {
return Number.isNaN(value);
}
//#endregion
exports.isNaN = isNaN;