Skip to main content

addHexPrefix

Callable

  • addHexPrefix(str: string): string

  • Adds “0x” to a given String if it does not already start with “0x”.


    Parameters

    • str: string

    Returns string