aboutsummaryrefslogtreecommitdiff
path: root/node_modules/core-js/modules/es7.math.signbit.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/core-js/modules/es7.math.signbit.js')
-rw-r--r--node_modules/core-js/modules/es7.math.signbit.js7
1 files changed, 7 insertions, 0 deletions
diff --git a/node_modules/core-js/modules/es7.math.signbit.js b/node_modules/core-js/modules/es7.math.signbit.js
new file mode 100644
index 000000000..c25680486
--- /dev/null
+++ b/node_modules/core-js/modules/es7.math.signbit.js
@@ -0,0 +1,7 @@
+// http://jfbastien.github.io/papers/Math.signbit.html
+var $export = require('./_export');
+
+$export($export.S, 'Math', { signbit: function signbit(x) {
+ // eslint-disable-next-line no-self-compare
+ return (x = +x) != x ? x : x == 0 ? 1 / x == Infinity : x > 0;
+} });