Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/tstl/benchmark/internal/StringUtil.ts>StringUtil.repeat

TypeScript-STL (Standard Template Library, migrated from C++)
Go to Latest
method StringUtil.repeat
import { StringUtil } from "https://deno.land/x/tstl@v2.4.11/benchmark/internal/StringUtil.ts";

Repeat a string.

Returns a string consisting of a specified string concatenated with itself a specified number of times.

Parameters

str: string

The string to be repeated.

n: number

The repeat count.

Returns

string

The repeated string.