The string to be tested.
A boolean indicating whether the string is a hexadecimal number.
This function uses a regular expression to test if the input string is a hexadecimal number.
isHex('123abc');
//=> true
isHex('123g');
//=> false
Generated using TypeDoc
Checks if a string is a hexadecimal number. Understands prefixes for hex colors, hex decimal and regexp unicode hex.