UNPKG

@deno/kv

Version:

A Deno KV client library optimized for Node.js.

30 lines (29 loc) 850 B
/** * Concatenate an array of {@linkcode Uint8Array}s. * * @example * ```ts * 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 ] * ``` */ export declare function concat(buf: Uint8Array[]): Uint8Array; /** * @deprecated (will be removed in 0.209.0) Pass in an array instead of a * spread of arguments. * * Concatenate an array of {@linkcode Uint8Array}s. * * @example * ```ts * 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 ] * ``` */ export declare function concat(...buf: Uint8Array[]): Uint8Array;