app-string

On this page:

repeat

Summary

Copies a string a specified number times.

Description

Constructs and returns a new string which contains the specified number of copies of the string on which it was called, concatenated together.

Route

POST /string/repeat

Roles

admin

Parameters

DetailsExampleSchema
Name Type Required Description
str string yes The string to copy
count number yes The number of times to repeat the copy

Return

DetailsExampleSchema
Name Type Description
repeatedString string A new string containing the specified number of copies of the given string