Skip to content

Instantly share code, notes, and snippets.

@joeskeen
Last active September 16, 2019 15:39
Show Gist options
  • Save joeskeen/fbddb11a4c811d4c92ce90bac6f28cbb to your computer and use it in GitHub Desktop.
Save joeskeen/fbddb11a4c811d4c92ce90bac6f28cbb to your computer and use it in GitHub Desktop.
/**
* Returns whether the given value is an integer
* @param value the value to test
* @returns whether the value is an integer
*/
export function isInteger(value) {
return Math.floor(value) == value;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment