Created
November 14, 2018 09:32
-
-
Save Troland/a50aad9ddebab7b5af38551a960f3287 to your computer and use it in GitHub Desktop.
isInter
This file contains 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
// 判断是否整数 | |
const isInt = (n) => { | |
return Number(n) === n && n % 1 === 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment