Concatenate n typed arrays.
Based on Axel Rauschmayer's article.
npm install concat-typed-array
import concatTypedArray from "concat-typed-array";
concatTypedArray(Uint8Array, Uint8Array.of(1, 2), Uint8Array.of(3, 4));
//=> Uint8Array [1, 2, 3, 4]
TypedArray
⏏Concatenate n typed arrays
Kind: Exported function
Param | Type | Description |
---|---|---|
ResultConstructor | TypedArray |
Returned typed array constructor |
...arrays | TypedArray |
Arrays to concatenate |
MIT. See license file.