polyfills.js 175 B Download Raw Copy 1if (!Math.sign) {2 Math.sign = function(x) {3 x = +x; // convert to a number4 if (x === 0 || isNaN(x)) {5 return Number(x);6 }7 return x > 0 ? 1 : -1;8 };9}