Opal-Estate-Pro/node_modules/core-js/modules/_is-integer.js
2019-09-13 11:27:52 +07:00

7 lines
206 B
JavaScript

// 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;
};