isFinite.mjs 282 B

1234567
  1. /* eslint-disable no-redeclare */
  2. // $FlowFixMe[name-already-bound] 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;