Merges multiple Uint8Array instances into a single Uint8Array.
Uint8Array
A new Uint8Array containing all elements from the input arrays in order.
const a = new Uint8Array([1, 2]);const b = new Uint8Array([3, 4]);const merged = mergeUint8Arrays(a, b); // → Uint8Array [1, 2, 3, 4]
Rest
One or more Uint8Array instances to merge.
Generated using TypeDoc
Merges multiple
Uint8Arrayinstances into a singleUint8Array.Returns
A new
Uint8Arraycontaining all elements from the input arrays in order.Example
Remarks
Uint8Array; the input arrays are not modified.