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