_is-integer.js 206 B

1234567
  1. // 20.1.2.3 Number.isInteger(number)
  2. var isObject = require('./_is-object');
  3. var floor = Math.floor;
  4. module.exports = function isInteger(it) {
  5. return !isObject(it) && isFinite(it) && floor(it) === it;
  6. };