Skip to content

Instantly share code, notes, and snippets.

@AWaselnuk
Created December 19, 2014 14:18
Show Gist options
  • Save AWaselnuk/1c1f117bdad548202b10 to your computer and use it in GitHub Desktop.
Save AWaselnuk/1c1f117bdad548202b10 to your computer and use it in GitHub Desktop.
Test that something is an integer.
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