Converts a hexadecimal string to a Uint8Array.
Uint8Array
Handles the 0x / 0X prefix and odd-length hex strings.
0x
0X
The hex string, optionally prefixed with 0x or 0X
Byte array representation
hexToByteSequence('0xFF'); // Uint8Array [255]hexToByteSequence('0F'); // Uint8Array [15] (padded) Copy
hexToByteSequence('0xFF'); // Uint8Array [255]hexToByteSequence('0F'); // Uint8Array [15] (padded)
Converts a hexadecimal string to a
Uint8Array.Handles the
0x/0Xprefix and odd-length hex strings.