# concat-typed-array

> Concatenate n typed arrays.

Latest version **2.1.0** (published 2021-09-10) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install concat-typed-array
pnpm add concat-typed-array
yarn add concat-typed-array
bun add concat-typed-array
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.1.0 |
| Published | 2021-09-10 |
| First published | 2016-06-16 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=15.0.0 |
| Dependencies | 0 |
| Unpacked size | 6.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 5 |
| Author | Damien Seguin |
| Maintainers | dmnsgn |
| Keywords | concat, typed-arrays, arrays, util |

## Links

- npm: https://www.npmjs.com/package/concat-typed-array
- Repository: https://github.com/dmnsgn/concat-typed-array
- Issues: https://github.com/dmnsgn/concat-typed-array/issues
- Funding: https://paypal.me/dmnsgn
- npm.io page: https://npm.io/package/concat-typed-array

## Alternatives

- [lodash.assign](https://npm.io/package/lodash.assign.md) — 2.3M weekly downloads
- [lodash.chunk](https://npm.io/package/lodash.chunk.md) — 1.8M weekly downloads
- [react-native-ios-utilities](https://npm.io/package/react-native-ios-utilities.md) — 138.5K weekly downloads
- [@technically/lodash](https://npm.io/package/@technically/lodash.md) — 50.9K weekly downloads
- [@fluid-topics/ft-icon](https://npm.io/package/@fluid-topics/ft-icon.md) — 20.6K weekly downloads

## Recent versions

- 2.1.0 (latest) — 2021-09-10
- 2.0.0 — 2021-04-09
- 1.0.2 — 2016-06-16
- 1.0.1 — 2016-06-16
- 1.0.0 — 2016-06-16

## README

# concat-typed-array

[![npm version](https://img.shields.io/npm/v/concat-typed-array)](https://www.npmjs.com/package/concat-typed-array)
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/concat-typed-array)
[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/concat-typed-array)](https://www.npmjs.com/package/concat-typed-array)
[![dependencies](https://img.shields.io/david/dmnsgn/concat-typed-array)](https://github.com/dmnsgn/concat-typed-array/blob/main/package.json)
[![types](https://img.shields.io/npm/types/concat-typed-array)](https://github.com/microsoft/TypeScript)
[![Conventional Commits](https://img.shields.io/badge/Conventional%20Commits-1.0.0-fa6673.svg)](https://conventionalcommits.org)
[![styled with prettier](https://img.shields.io/badge/styled_with-Prettier-f8bc45.svg?logo=prettier)](https://github.com/prettier/prettier)
[![linted with eslint](https://img.shields.io/badge/linted_with-ES_Lint-4B32C3.svg?logo=eslint)](https://github.com/eslint/eslint)
[![license](https://img.shields.io/github/license/dmnsgn/concat-typed-array)](https://github.com/dmnsgn/concat-typed-array/blob/main/LICENSE.md)

Concatenate n typed arrays.

[![paypal](https://img.shields.io/badge/donate-paypal-informational?logo=paypal)](https://paypal.me/dmnsgn)
[![coinbase](https://img.shields.io/badge/donate-coinbase-informational?logo=coinbase)](https://commerce.coinbase.com/checkout/56cbdf28-e323-48d8-9c98-7019e72c97f3)
[![twitter](https://img.shields.io/twitter/follow/dmnsgn?style=social)](https://twitter.com/dmnsgn)

Based on [Axel Rauschmayer's article](http://www.2ality.com/2015/10/concatenating-typed-arrays.html).

## Installation

```bash
npm install concat-typed-array
```

## Usage

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

## API

<!-- api-start -->

<a name="module_concatTypedArray"></a>

## concatTypedArray

<a name="exp_module_concatTypedArray--concatTypedArray"></a>

### concatTypedArray(ResultConstructor, ...arrays) ⇒ <code>TypedArray</code> ⏏

Concatenate n typed arrays

**Kind**: Exported function

| Param             | Type                    | Description                      |
| ----------------- | ----------------------- | -------------------------------- |
| ResultConstructor | <code>TypedArray</code> | Returned typed array constructor |
| ...arrays         | <code>TypedArray</code> | Arrays to concatenate            |

<!-- api-end -->

## License

MIT. See [license file](https://github.com/dmnsgn/concat-typed-array/blob/main/LICENSE.md).

---
_Source: https://npm.io/package/concat-typed-array · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
