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