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

x/aleph/std.ts>bytes.repeat

The Full-stack Framework in Deno.
Go to Latest
function bytes.repeat
import { bytes } from "https://deno.land/x/aleph@v0.2.27/std.ts";
const { repeat } = bytes;

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