Validate that value is integer or issue error
mustBeInteger(
issues an error if value
)value
does not contain integer values. This function tests for numbers with no fractional part. The data type of the values is not considered. mustBeInteger
does not return a value.
This function 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.