unaryMinus

-x

unaryMinus(x)

Inverse the sign of a value. Converts booleans and strings to numbers.

Try it yourself:

See also:
All functions