Function checkHex

  • Checks if a number is a hexadecimal number.

    Parameters

    • n: string

      A hexadecimal number.

    Returns boolean

    True if the number is a hexadecimal, false otherwise.