Module

x/oak/deps.ts>concat

A middleware framework for handling HTTP with Deno 🐿️ 🦕
Extremely Popular
Go to Latest
function concat
import { concat } from "https://dotland.deno.dev/x/oak@v13.2.5/deps.ts";

Concatenate an array of {@link Uint8Array}s.

Examples

Example 1

import { concat } from "https://deno.land/std@$STD_VERSION/bytes/concat.ts";

const a = new Uint8Array([0, 1, 2]);
const b = new Uint8Array([3, 4, 5]);
concat([a, b]); // Uint8Array(6) [ 0, 1, 2, 3, 4, 5 ]

Parameters

buf: Uint8Array[]

Returns

Uint8Array