• Parameters

    • parameterValue: string

      The parameter value.

    • parameterName: string

      The parameter name.

    • prefix: boolean = true

      A boolean to include or not a '0x' or '0X' prefix.

    Returns void

    Throws

    Throws a type error if the parameter value is not a hexadecimal string. If 'prefix' is 'true', the string must start with '0x' or '0X' followed by one or more hexadecimal digits (0-9, a-f, A-F), otherwise no prefix is expected. 'prefix' is optional and if its value it is not explicitly defined it will be set to 'true' by default.