Created
March 1, 2019 20:26
-
-
Save gaalha/f1b158d69983f05e24740ec5ef60f978 to your computer and use it in GitHub Desktop.
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 normalizedInt(num){ | |
var i = parseInt(num); | |
return (isNaN(i)) ? 0 : i; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment