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

x/capi/deps/std/bytes.ts>concat

[WIP] A framework for crafting interactions with Substrate chains
Latest
function concat
import { concat } from "https://deno.land/x/capi@v0.1.1-beta.1/deps/std/bytes.ts";

Concatenate the given arrays into a new Uint8Array.

import { concat } from "https://deno.land/std@0.224.0/bytes/concat.ts";
const a = new Uint8Array([0, 1, 2]);
const b = new Uint8Array([3, 4, 5]);
console.log(concat(a, b)); // [0, 1, 2, 3, 4, 5]

Parameters

...buf: Uint8Array[]

Returns

Uint8Array