Concatenates multiple byte-like arrays to the first number array.
The number array as result
Rest
The byte-like arrays to concatenate.
The first number array
const concatenatedBytes = [1, 2];bytesConcatTo( concatenatedBytes new Uint8Array([3, 4]), "hello", [5, 6, 7]);console.log(concatenatedBytes); // Outputs [1, 2, 3, 4, /* bytes of "hello" */, 5, 6, 7] Copy
const concatenatedBytes = [1, 2];bytesConcatTo( concatenatedBytes new Uint8Array([3, 4]), "hello", [5, 6, 7]);console.log(concatenatedBytes); // Outputs [1, 2, 3, 4, /* bytes of "hello" */, 5, 6, 7]
Concatenates multiple byte-like arrays to the first number array.