Skip to content

Instantly share code, notes, and snippets.

@VoloshchenkoAl
Created April 5, 2016 15:09
Show Gist options
  • Save VoloshchenkoAl/23c8a5bcff6211129d1885f4ae231e53 to your computer and use it in GitHub Desktop.
Save VoloshchenkoAl/23c8a5bcff6211129d1885f4ae231e53 to your computer and use it in GitHub Desktop.
function isInteger(num) {
return (num ^ 0) === num;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment