Module: sources/cores/arrays/isEmptyArray

Export function to validate if a value is an array of null length or not
Author:
License:
Source:

Example

import { isEmptyArray } from 'itee-validators'

if( isEmptyArray( value ) ) {
    //...
} else {
    //...
}

Methods


<static> isEmptyArray(data)

Check if given data is an empty array
Parameters:
Name Type Description
data * The data to check against the empty array
Source:
Returns:
true if data is an empty array, false otherwise
Type
boolean

<static> isNotEmptyArray(data)

Check if given data is not an empty array
Parameters:
Name Type Description
data * The data to check against the empty array
Source:
Returns:
true if data is not an empty array, false otherwise
Type
boolean