Last active
September 16, 2019 15:39
-
-
Save joeskeen/fbddb11a4c811d4c92ce90bac6f28cbb to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* 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