2017-09-13 07:52:34 +02:00

4 lines
131 B
JavaScript
Vendored

// 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;
};