GoScrobble/web/node_modules/core-js-pure/internals/is-integer.js

10 lines
274 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
var isObject = require('../internals/is-object');
var floor = Math.floor;
// `Number.isInteger` method implementation
// https://tc39.es/ecma262/#sec-number.isinteger
module.exports = function isInteger(it) {
return !isObject(it) && isFinite(it) && floor(it) === it;
};