Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

concat-typed-array

dmnsgn16.3kMITdeprecated2.1.0TypeScript support: included

WARNING: This package has been renamed to typed-array-concat.

Concatenate n typed arrays.

concat, typed-arrays, arrays, util

readme

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

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

License

MIT. See license file.

changelog

Changelog

All notable changes to this project will be documented in this file. See standard-version for commit guidelines.

2.1.0 (2021-09-10)

Features

  • add exports field to package.json (434ac8b)

2.0.0 (2021-04-09)

Code Refactoring

BREAKING CHANGES

  • switch to type module