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