Module: sources/cores/voids/isNull

Export function to validate if a value is null or not
Author:
License:
Source:

Example

import { isNull } from 'itee-validators'

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

Methods


<static> isNotNull(data)

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

<static> isNull(data)

Check if given data is null
Parameters:
Name Type Description
data * The data to check against the nullity
Source:
Returns:
true if data is null, false otherwise.
Type
boolean