$.is-integer.js 207 B

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