Function assertIsStrictHexString

  • Assert that a value is a valid hex string. A valid hex string must start with the "0x"-prefix.

    Throws

    If the value is not a valid hex string.

    Parameters

    • value: unknown

      The value to check.

    Returns asserts value is `0x${string}`