Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

concat

import { concat } from "https://raw.githubusercontent.com/marigold-dev/tzstamp/0.3.4/helpers/mod.ts";

Concatenates numbers or byte arrays into a single byte array. Numbers out of the range [0, 256) will wrap.

concat(
  new Uint8Array([1, 2, 3]),
  4,
  new Uint8Array([5, 6]),
);
// Uint8Array (6) [ 1, 2, 3, 4, 5, 6 ]
function concat(...chunks: (number | Uint8Array)[]): Uint8Array;
§
concat(...chunks: (number | Uint8Array)[]): Uint8Array
[src]

§Parameters

§
...chunks: (number | Uint8Array)[] optional
[src]

§Return Type

§
Uint8Array
[src]