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

1.0.3 • Public • Published

typed-array-concat

TypedArray.set() the concat() way

install

npm i @vandeurenglenn/typed-array-concat

usage

import typedArrayConcat from '@vandeurenglenn/typed-array-concat'

const concated = typedArrayConcat([
  new TextEncoder('hello'),
  new TextEncoder('world')
])
console.log(new TextDecoder().decode(concated)) // helloworld

const concatedSeperated = typedArrayConcat([
  new TextEncoder('hello'),
  new TextEncoder('world')
], {
  seperator: ' '
})
console.log(new TextDecoder().decode(concatedSeperated)) // hello world

Readme

Keywords

none

Package Sidebar

Install

npm i @vandeurenglenn/typed-array-concat

Weekly Downloads

9

Version

1.0.3

License

MIT

Unpacked Size

3.95 kB

Total Files

7

Last publish

Collaborators

  • vandeurenglenn