projects
/
yaffs-website
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
a4848df600e71d27f7e1c7b602b0eb2d18df4066
[yaffs-website]
/
modules
/
_math-sign.js
1
// 20.2.2.28 Math.sign(x)
2
module.exports = Math.sign || function sign(x){
3
return (x = +x) == 0 || x != x ? x : x < 0 ? -1 : 1;
4
};