Export function to validate if a value is an array with more than one value
- License:
- Source:
Example
import { isArrayOfMultiElement } from 'itee-validators'
if( isArrayOfMultiElement( value ) ) {
//...
} else {
//...
}
Methods
-
<static> isArrayOfMultiElement(data)
-
Check if given data is an array with multiples values
Parameters:
Name Type Description data* The data to check against the single valued array Returns:
true if data is an array with multiples values, false otherwise- Type
- boolean