Skip to main content

isHexPrefixed

Callable

  • isHexPrefixed(str: string): boolean

  • Returns a Boolean on whether or not the a String starts with ‘0x’

    @throws

    if the str input is not a string


    Parameters

    • str: string

      the string input value

    Returns boolean

    a boolean if it is or is not hex prefixed