isFinite.mjs 262 B

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