# typed-array-interleave

> Interleave n typed arrays.

Latest version **2.0.1** (published 2024-07-06) · MIT license · 0 weekly downloads

## Install

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

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.1 |
| Published | 2024-07-06 |
| First published | 2023-02-08 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=22.0.0 |
| Dependencies | 0 |
| Unpacked size | 7.2 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | Damien Seguin |
| Maintainers | dmnsgn |
| Keywords | interleave, typed-arrays, arrays, util |

## Links

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

## 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.0.1 (latest) — 2024-07-06
- 2.0.0 — 2023-02-08

## README

# typed-array-interleave

[![npm version](https://img.shields.io/npm/v/typed-array-interleave)](https://www.npmjs.com/package/typed-array-interleave)
[![stability-stable](https://img.shields.io/badge/stability-stable-green.svg)](https://www.npmjs.com/package/typed-array-interleave)
[![npm minzipped size](https://img.shields.io/bundlephobia/minzip/typed-array-interleave)](https://bundlephobia.com/package/typed-array-interleave)
[![dependencies](https://img.shields.io/librariesio/release/npm/typed-array-interleave)](https://github.com/dmnsgn/typed-array-interleave/blob/main/package.json)
[![types](https://img.shields.io/npm/types/typed-array-interleave)](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/typed-array-interleave)](https://github.com/dmnsgn/typed-array-interleave/blob/main/LICENSE.md)

Interleave 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)

## Installation

```bash
npm install typed-array-interleave
```

## Usage

```js
import typedArrayInterleave from "typed-array-interleave";
typedArrayInterleave(
  Uint8Array,
  [3, 2],
  Uint8Array.of(1, 2, 3, 4, 5, 6),
  Uint8Array.of(7, 8, 9, 10)
);
//=> Uint8Array [1, 2, 3, 7, 8, 4, 5, 6, 9, 10]
```

## API

<!-- api-start -->

<a name="module_typedArrayInterleave"></a>

## typedArrayInterleave

<a name="exp_module_typedArrayInterleave--typedArrayInterleave"></a>

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

Interleave n typed arrays

**Kind**: Exported function

| Param             | Type                    | Description                                      |
| ----------------- | ----------------------- | ------------------------------------------------ |
| ResultConstructor | <code>TypedArray</code> | Returned typed array constructor                 |
| elements          | <code>Array</code>      | Number of elements to group for each typed array |
| ...arrays         | <code>TypedArray</code> | Arrays to interleave                             |

<!-- api-end -->

## License

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

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