function concat
concat(buf: Uint8Array[]): Uint8ArrayConcatenate an array of Uint8Arrays.
Examples
Example 1
Example 1
import { concat } from "@std/bytes/concat"; 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[]