JavaScript Math.sign()
Math.sign(x) returns if x is negative, null or positive: