Export function to validate if a value is an array of objects or not
- License:
- Source:
Example
import { isArrayOfObject } from 'itee-validators' if( isArrayOfObject( value ) ) { //... } else { //... }
Methods
-
<static> isArrayOfObject(data)
-
Check if given data is an array where all values are of object type
Parameters:
Name Type Description data
* The data to check against the array of object type Returns:
true if data is an array where all values are of object type, false otherwise- Type
- boolean
-
<static> isNotArrayOfObject(data)
-
Check if given data is not an array where all values are of object type
Parameters:
Name Type Description data
* The data to check against the array of object type Returns:
true if data is not an array where all values are of object type, false otherwise- Type
- boolean