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