Skip to main content

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

ParameterTypeDescription

value

unknown

The value to check.

Returns

value is 0x${string}

Defined

@nilfoundation/niljs/src/utils/hex.ts:10