@mathias this shim would work, no? Number.isNaN = Number.isNaN || function(x){ return x !== x; };
-
-
-
@yahelc I think so. Without unneeded reassignment: Number.isNaN || Number.isNaN = function(x) { return x !== x; };
End of conversation
New conversation -
-
-
@mathias window.isNaN() will be retired? -
@alexdickson No. They’re a bit different, too. Global `isNaN` coerces its argument to a Number first, but `Number.isNaN` doesn’t. - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.