Skip to main content
Module

std/bytes/mod.ts>repeat

Deno standard library
Go to Latest
function repeat
import { repeat } from "https://deno.land/std@0.130.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