parseHex
Callable
Parameters
hex: string
The hexadecimal color code to be validated.
Returns string[] | null
An array of matched values if the input is a valid hexadecimal color code, or null otherwise.
The hexadecimal color code to be validated.
An array of matched values if the input is a valid hexadecimal color code, or null otherwise.
Checks if the given string represents a valid hexadecimal color code.