typed-array-concat
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

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

Param Type Description
ResultConstructor TypedArray Returned typed array constructor
...arrays TypedArray Arrays to concatenate

License

MIT. See license file.

/typed-array-concat/

    Package Sidebar

    Install

    npm i typed-array-concat

    Weekly Downloads

    7

    Version

    3.0.1

    License

    MIT

    Unpacked Size

    6.91 kB

    Total Files

    6

    Last publish

    Collaborators

    • dmnsgn