diff options
Diffstat (limited to 'src/node_modules/es-abstract/helpers/isFinite.js')
-rw-r--r-- | src/node_modules/es-abstract/helpers/isFinite.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/node_modules/es-abstract/helpers/isFinite.js b/src/node_modules/es-abstract/helpers/isFinite.js new file mode 100644 index 0000000..9e7cd4f --- /dev/null +++ b/src/node_modules/es-abstract/helpers/isFinite.js @@ -0,0 +1,5 @@ +'use strict'; + +var $isNaN = Number.isNaN || function (a) { return a !== a; }; + +module.exports = Number.isFinite || function (x) { return typeof x === 'number' && !$isNaN(x) && x !== Infinity && x !== -Infinity; }; |