shim.js 183 B

12345678
  1. // Credit: http://www.2ality.com/2014/05/is-integer.html
  2. "use strict";
  3. module.exports = function (value) {
  4. if (typeof value !== "number") return false;
  5. return value % 1 === 0;
  6. };