LendAndRegret/node_modules/es-toolkit/dist/compat/predicate/isNaN.d.mts
2026-05-02 17:27:43 +08:00

16 lines
336 B
TypeScript

/**
* 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
*/
declare function isNaN(value?: any): boolean;
export { isNaN };