Returns the sign (or signum) of the given value.
sign(value)
value
A value.
[Math.sign(-42), Math.sign(0), Math.sign(42)]
[-1, 0, 1]