mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
10 lines
281 B
JavaScript
10 lines
281 B
JavaScript
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;
|
|
};
|