Concatenates multiple byte-like arrays into a single byte array.
Rest
The byte-like arrays to concatenate.
A Uint8Array containing the concatenated bytes.
const concatenatedBytes = bytesConcat( new Uint8Array([1, 2]), new Uint8Array([3, 4]), "hello", [5, 6, 7]);console.log(concatenatedBytes); // Outputs Uint8Array [1, 2, 3, 4, /* bytes of "hello" */, 5, 6, 7] Copy
const concatenatedBytes = bytesConcat( new Uint8Array([1, 2]), new Uint8Array([3, 4]), "hello", [5, 6, 7]);console.log(concatenatedBytes); // Outputs Uint8Array [1, 2, 3, 4, /* bytes of "hello" */, 5, 6, 7]
Concatenates multiple byte-like arrays into a single byte array.