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