Function: isHexString()
function isHexString(value): value is 0x${string}
Checks if the value is a hex string. If the value is a hex string, returns true. Otherwise, returns false.
Parameters
Parameter | Type | Description |
---|---|---|
|
| The value to check. |
Returns
value is 0x${string}
Defined
@nilfoundation/niljs/src/utils/hex.ts:10