isInteger.js 415 B

123456789101112131415
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", {
  3. value: true
  4. });
  5. exports.default = void 0;
  6. /* eslint-disable no-redeclare */
  7. // $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
  8. var isInteger = Number.isInteger || function (value) {
  9. return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
  10. };
  11. var _default = isInteger;
  12. exports.default = _default;