reports/frontend/node_modules/es-toolkit/dist/compat/predicate/isNaN.js
jtricerolph 1c411e402e Add settings page for managing forecasting API key and URL via UI
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-07-20 14:37:36 +00:00

19 lines
470 B
JavaScript

const require_isNumber = require("./isNumber.js");
//#region src/compat/predicate/isNaN.ts
/**
* Checks if the value is NaN.
*
* @param value - The value to check.
* @returns `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 require_isNumber.isNumber(value) && Number.isNaN(Number(value));
}
//#endregion
exports.isNaN = isNaN;