Skip to main content
Module

x/lucid/mod.ts>concat

Lucid is a library, which allows you to create Cardano transactions and off-chain code for your Plutus contracts in JavaScript, Deno and Node.js.
Very Popular
Latest
function concat
Re-export
import { concat } from "https://deno.land/x/lucid@0.10.7/mod.ts";

Concatenate the given arrays into a new Uint8Array.

import { concat } from "./mod.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