3.0.0 • Published 1 year ago

typed-array-concat v3.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

typed-array-concat

npm version stability-stable npm minzipped size dependencies types Conventional Commits styled with prettier linted with eslint license

Concatenate n typed arrays.

paypal coinbase twitter

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

ParamTypeDescription
ResultConstructorTypedArrayReturned typed array constructor
...arraysTypedArrayArrays to concatenate

License

MIT. See license file.