blob: 0074ae975a3d60843dc8a5d12eb8f78aadb1cabe (
plain)
1
2
3
4
5
6
|
// 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;
};
|