• Checks if the given input is a hex string.

    Parameters

    • input: unknown

      The input to be checked.

    • Optionalstrict: boolean

      If true, the function also checks if the hex is of even length (padded hex).

    Returns input is `0x${string}`

    Returns true if the input is a hex string, false otherwise.