es-toolkit
Version:
A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.
16 lines (14 loc) • 336 B
text/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 };