3 ms·
> It can be a prefix ‘this number is positive’ operator where it operates on a single number. `+` in this context is the "Unary + Operator" which coerces a val
by geraldalewis 15y ago
> It can be a prefix ‘this number is positive’ operator where it operates on a single number.
`+` in this context is the "Unary + Operator" which coerces a value to a number via the internal `toNumber` method of the operand.
It doesn't make the number positive:
node> +-1 // -1