Export functions to validate if a value is an array or not
- License:
- Source:
Example
import { isArray } from 'itee-validators' if( isArray( value ) ) { //... } else { //... }
Methods
-
<static> isArray(data)
-
Check if given data is an array
Parameters:
Name Type Description data
* The data to check against the array type - Source:
Returns:
true if data is array, false otherwise- Type
- boolean
-
<static> isNotArray(data)
-
Check if given data is not an array
Parameters:
Name Type Description data
* The data to check against the array type - Source:
Returns:
true if data is not array, false otherwise- Type
- boolean