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