The string to be tested.
A boolean value indicating whether the string is a hexadecimal or unicode.
This function uses a regular expression to test if the input string is a hexadecimal or unicode.
isHexOrUnicode('0x123');
//=> true
isHexOrUnicode('u123');
//=> true
isHexOrUnicode('123');
//=> false
Generated using TypeDoc
Checks if a given string is a hexadecimal or unicode.