Module

std/bytes/mod.ts>repeat

Deno standard library
Go to Latest
function repeat
import { repeat } from "https://dotland.deno.dev/std@0.122.0/bytes/mod.ts";

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

Parameters

origin: Uint8Array

The origin bytes

count: number

The count you want to repeat.

Returns

Uint8Array