Created
December 19, 2014 14:18
-
-
Save AWaselnuk/1c1f117bdad548202b10 to your computer and use it in GitHub Desktop.
Test that something is an integer.
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 isInteger(num) { | |
num === Math.round(num); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment