I’ve only been trying it in Firefox’s JavaScript console, but neither of the following statements return true:
parseFloat(\'geoff\') == NaN; parseFloat(\'ge
As of ES6, Object.is(..) is a new utility that can be used to test two values for absolute equality:
Object.is(..)
var a = 3 / 'bar'; Object.is(a, NaN); // true