2.1.0 • Published 3 years ago

concat-typed-array v2.1.0

Weekly downloads
115
License
MIT
Repository
github
Last release
3 years ago

concat-typed-array

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 concat-typed-array

Usage

import concatTypedArray from "concat-typed-array";
concatTypedArray(Uint8Array, Uint8Array.of(1, 2), Uint8Array.of(3, 4));
//=> Uint8Array [1, 2, 3, 4]

API

concatTypedArray

concatTypedArray(ResultConstructor, ...arrays) ⇒ TypedArray

Concatenate n typed arrays

Kind: Exported function

ParamTypeDescription
ResultConstructorTypedArrayReturned typed array constructor
...arraysTypedArrayArrays to concatenate

License

MIT. See license file.