Skip to main content
The Deno 2 Release Candidate is here
Learn more
Latest
function repeat
import { repeat } from "https://deno.land/x/denjucks@1.1.1/src/deps/path/std/bytes/mod.ts";

Repeat bytes. returns a new byte slice consisting of count copies of b.

Parameters

b: Uint8Array

The origin bytes

count: number

The count you want to repeat.

Returns

Uint8Array