diff options
Diffstat (limited to 'node_modules/es-abstract/helpers/isFinite.js')
| -rw-r--r-- | node_modules/es-abstract/helpers/isFinite.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/node_modules/es-abstract/helpers/isFinite.js b/node_modules/es-abstract/helpers/isFinite.js new file mode 100644 index 00000000..46585376 --- /dev/null +++ b/node_modules/es-abstract/helpers/isFinite.js @@ -0,0 +1,3 @@ +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; }; |
