import { concat } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/bytes/index.js";
Like Buffer.concat
but for native Uint8Array
.
Examples
Example 1
Example 1
import { concat } from "@ayonli/jsext/bytes";
const arr1 = new Uint8Array([1, 2, 3]);
const arr2 = new Uint8Array([4, 5, 6]);
const result = concat(arr1, arr2);
console.log(result); // Uint8Array(6) [ 1, 2, 3, 4, 5, 6 ]