Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/deno/std/bytes/mod.ts>repeat

A modern runtime for JavaScript and TypeScript.
Go to Latest
function repeat
import { repeat } from "https://deno.land/x/deno@v0.22.0/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