isInteger.mjs 280 B

1234567
  1. /* eslint-disable no-redeclare */
  2. // $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
  3. var isInteger = Number.isInteger || function (value) {
  4. return typeof value === 'number' && isFinite(value) && Math.floor(value) === value;
  5. };
  6. export default isInteger;