Files
Zos/Skills/@be/node_modules/pixi.js/lib/polyfill/Math.sign.js

17 lines
351 B
JavaScript
Raw Normal View History

"use strict";
// References:
// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/sign
if (!Math.sign) {
Math.sign = function mathSign(x) {
x = Number(x);
if (x === 0 || isNaN(x)) {
return x;
}
return x > 0 ? 1 : -1;
};
}
//# sourceMappingURL=Math.sign.js.map