Created
February 16, 2010 04:30
-
-
Save silentmatt/305288 to your computer and use it in GitHub Desktop.
Replaces isNaN function
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var a = NaN; | |
isNaN(a); // true because a has the value NaN | |
isNaN = function(x) { return x < 5; }; | |
isNaN(a); // false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment