is-integer.js 218 B

12345678910
  1. "use strict";
  2. var isInteger = require("../number/is-integer")
  3. , isValue = require("./is-value");
  4. module.exports = function (arg) {
  5. if (!isValue(arg)) return false;
  6. arg = Number(arg);
  7. return isInteger(arg);
  8. };