VUE_GabenParadise/node_modules/core-js/internals/is-integer.js

10 lines
281 B
JavaScript
Raw Normal View History

2020-08-10 12:35:19 +00:00
var isObject = require('../internals/is-object');
var floor = Math.floor;
// `Number.isInteger` method implementation
// https://tc39.github.io/ecma262/#sec-number.isinteger
module.exports = function isInteger(it) {
return !isObject(it) && isFinite(it) && floor(it) === it;
};