In JavaScript on Firefox, a Uint8Array shows like this on the console, using console.log:
Uint8Array […]
0: 131
1: 165
2: 116
3: 111
4: 112
How can I make it show as hexadecimal values, like this:
Uint8Array […]
0: 0x83
1: 0xa5
2: 0x74
3: 0x6f
4: 0x70
I'm trying to debug some websocket communication and have to look up the bytes in the format specification which only lists the values in hex.