@univerjscorefunctionsRepeatstringnumtimes

@univerjs/core v0.5.0-beta.1Docs


Function: repeatStringNumTimes()

function repeatStringNumTimes(string, times): string

Repeats the given string (first argument) num times (second argument). If num is not positive, an empty string is returned.

Parameters

ParameterTypeDescription
stringstringgiven string
timesnumberrepeat times

Returns

string

Defined in

packages/api/tmp/univer-pro/submodules/univer/packages/core/src/shared/sequence.ts:66