Skip to content

Instantly share code, notes, and snippets.

@teak1
Created February 27, 2019 02:44
Show Gist options
  • Save teak1/36e114a72e478df2441d5f95381f1c32 to your computer and use it in GitHub Desktop.
Save teak1/36e114a72e478df2441d5f95381f1c32 to your computer and use it in GitHub Desktop.
function isInt(number){
return number==(number|0);
}
@teak1
Copy link
Author

teak1 commented Feb 27, 2019

the intention of how this code works is flawed, the js behaves how it should but this code is not viable to detect an integer value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment