Created
June 15, 2011 16:16
-
-
Save arapehl/1027451 to your computer and use it in GitHub Desktop.
Defaults parseInt's radix to 10
This file contains 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
if (parseInt('080') === 0) { | |
/*global _parseInt*/ | |
_parseInt = parseInt; | |
parseInt = function (str, radix) { | |
return _parseInt(str, radix || 10); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment