Export function to validate if a value is a empty string
- License:
- Source:
Example
import { isEmptyString } from 'itee-validators'
if( isEmptyString( value ) ) {
//...
} else {
//...
}
Methods
-
<static> isEmptyString(data)
-
Check if given data is an empty string
Parameters:
Name Type Description data* The data to check against the emptiness of the string Returns:
true if data is an empty string, false otherwise.- Type
- boolean
-
<static> isNotEmptyString(data)
-
Check if given data is not an empty string
Parameters:
Name Type Description data* The data to check against the emptiness of the string Returns:
true if data is not an empty string, false otherwise.- Type
- boolean