isNaNbeginner// Check for NaN without coercion
Number.isNaN(NaN) // β true
Number.isNaN('NaN') // β false (no coercion)
Number.isNaN(42) // β falseUse Number.isNaN() instead of the global isNaN() to check for NaN without coercing the argument first.
Number.isNaN(value) returns true only if the value is NaN. It does not coerce non-number types.