mirror of
https://github.com/JamesIves/github-pages-deploy-action.git
synced 2023-12-15 20:03:39 +08:00
15 lines
386 B
Plaintext
15 lines
386 B
Plaintext
|
// @flow strict
|
||
|
|
||
|
declare function isFinitePolyfill(
|
||
|
value: mixed,
|
||
|
): boolean %checks(typeof value === 'number');
|
||
|
|
||
|
/* eslint-disable no-redeclare */
|
||
|
// $FlowFixMe workaround for: https://github.com/facebook/flow/issues/4441
|
||
|
const isFinitePolyfill =
|
||
|
Number.isFinite ||
|
||
|
function(value) {
|
||
|
return typeof value === 'number' && isFinite(value);
|
||
|
};
|
||
|
export default isFinitePolyfill;
|