Validate that value is numeric or issue error
mustBeNumeric(
issues an error if value
)value
is not numeric. This function does not return a value.
mustBeNumeric
accepts user-defined objects if the class of the object implements this method:
This function ignores input arguments that are empty values. Therefore, no error is thrown when the property or function argument value is empty.