hexo/node_modules/core-js/modules/_is-integer.js

7 lines
212 B
JavaScript
Raw Normal View History

2023-10-03 11:14:36 +08:00
// 20.1.2.3 Number.isInteger(number)
var isObject = require('./_is-object');
var floor = Math.floor;
module.exports = function isInteger(it) {
return !isObject(it) && isFinite(it) && floor(it) === it;
};