negate<T extends num> function

T negate <T extends num>(T value)

-value int | double. Considers null value.

Implementation

T negate<T extends num>(T value) => (value == null) ? null : value * -1;