We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 37cbb6a commit d008e96Copy full SHA for d008e96
src/polyfills/isFinite.js
@@ -1,13 +1,14 @@
1
// @flow strict
2
3
-declare function isFinite(value: mixed): boolean %checks(typeof value ===
4
- 'number');
+declare function isFinitePolyfill(
+ value: mixed,
5
+): boolean %checks(typeof value === 'number');
6
7
/* eslint-disable no-redeclare */
8
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
-const isFinite =
9
+const isFinitePolyfill =
10
Number.isFinite ||
11
function(value) {
12
return typeof value === 'number' && isFinite(value);
13
};
-export default isFinite;
14
+export default isFinitePolyfill;
0 commit comments