Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/redis/vendor/https/deno.land/std/bytes/concat.ts>concat

🦕 Redis client for Deno 🍕
Very Popular
Latest
function concat
import { concat } from "https://deno.land/x/redis@v0.32.4/vendor/https/deno.land/std/bytes/concat.ts";

Concatenate an array of byte slices into a single slice.

Examples

Basic usage

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]);

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

Parameters

buffers: Uint8Array[]

Array of byte slices to concatenate.

Returns

Uint8Array

Hello