mirror of
https://github.com/idanoo/GoScrobble.git
synced 2024-11-24 09:25:15 +00:00
10 lines
274 B
JavaScript
10 lines
274 B
JavaScript
|
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;
|
||
|
};
|