$isValidHex
$isValidHex
will check if the given hex / decimal color is valid.
Usage
Parameters
Field | Type | Description | Required |
---|---|---|---|
colorResolver | string, number | Hex / decimal color string. | true |
Example(s)
This will return true
as #30dbd8
is an valid hex color:
This will return true
as well as 80
is an valid hexadecimal color: