Version 1
[yaffs-website] / node_modules / core-js / modules / _math-sign.js
diff --git a/node_modules/core-js/modules/_math-sign.js b/node_modules/core-js/modules/_math-sign.js
new file mode 100644 (file)
index 0000000..a4848df
--- /dev/null
@@ -0,0 +1,4 @@
+// 20.2.2.28 Math.sign(x)
+module.exports = Math.sign || function sign(x){
+  return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
+};
\ No newline at end of file