Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/ayonli_jsext/esm/bytes.js>concat

A JavaScript extension package for building strong and modern applications.
Latest
function concat
import { concat } from "https://deno.land/x/ayonli_jsext@v0.9.72/esm/bytes.js";

Like Buffer.concat but for native Uint8Array.

Examples

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 ]

Parameters

...arrays