📅  最后修改于: 2022-03-11 14:58:59.752000             🧑  作者: Mango
代码示例4
const eightAndAHalf = 8.5;
Number.isInteger(eightAndAHalf); // false
Number.isInteger(Math.floor(eightAndAHalf)); // true