Last active
August 29, 2015 14:13
-
-
Save tmcw/67b28b46283645f2a3b3 to your computer and use it in GitHub Desktop.
Gist from mistakes.io
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
function incrementZero(number) { | |
if (number == 0) return number + 1; | |
return number; | |
} | |
incrementZero(''); | |
incrementZero(0); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment