Module: sources/cores/voids/isEmpty

Export function to validate if a value could be considered as empty
Author:
License:
Source:

Example

import { isEmpty } from 'itee-validators'

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

Methods


<static> isEmpty(data)

Check emptiness of given data See: https://stackoverflow.com/questions/4346186/how-to-determine-if-a-function-is-empty
Parameters:
Name Type Description
data * The data to check against the emptiness
Source:
Returns:
true if data is considered as empty, false otherwise.
Type
boolean

<static> isNotEmpty(data)

Check fullness of given data
Parameters:
Name Type Description
data * The data to check against the emptiness
Source:
Returns:
true if data is considered as not empty, false otherwise.
Type
boolean