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