@nevware21/ts-utils
    Preparing search index...

    Function decodeHex

    • Decode a hexadecimal encoded string. A value that starts with the UTF-8 byte order mark and contains valid UTF-8 is decoded as UTF-8 text, all other values are decoded as one character per byte.

      Parameters

      • value: string

        The hexadecimal encoded string to decode

      Returns string

      The decoded string

      0.13.0

      decodeHex("48656c6c6f"); // "Hello"
      decodeHex("41"); // "A"
      decodeHex(""); // ""
      decodeHex("efbbbfe282ac"); // "€"