@vandeurenglenn/typed-array-concat
v1.0.3
Published
TypedArray.set() the concat() way
Downloads
77
Readme
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