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