Validate that value is negative or issue error
mustBeNegative(
issues an error if value
)value
is not negative. A value is negative if it is less than zero. This function does not return a value.
mustBeNegative
accepts user-defined objects if the class of the object implements these methods:
This function ignores input arguments that are empty values. Therefore, no error is thrown when the property or function argument value is empty.