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