This package has been deprecated

Author message:

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

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

1.1.0 • Public • Published

interleave-typed-array

npm version stability-stable npm minzipped size dependencies types Conventional Commits styled with prettier linted with eslint license

Interleave n typed arrays.

paypal coinbase twitter

Installation

npm install interleave-typed-array

Usage

import interleaveTypedArray from "interleave-typed-array";
interleaveTypedArray(
  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

interleaveTypedArray

interleaveTypedArray(ResultConstructor, elements, ...arrays) ⇒ TypedArray

Interleave n typed arrays

Kind: Exported function

Param Type Description
ResultConstructor TypedArray Returned typed array constructor
elements Array Number of elements to group for each typed array
...arrays TypedArray Arrays to interleave

License

MIT. See license file.

Package Sidebar

Install

npm i interleave-typed-array

Weekly Downloads

6

Version

1.1.0

License

MIT

Unpacked Size

6.7 kB

Total Files

6

Last publish

Collaborators

  • dmnsgn