Last active
November 4, 2015 18:42
-
-
Save ohcrfpv/8f83f43b2beccb5fa01f to your computer and use it in GitHub Desktop.
javascript check int number
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 isIntNumber(value) { | |
var numberRe = /^-?[0-9]+$/; | |
return typeof(value) === 'number' && numberRe.test(value); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
parseInt()