API Reference
@univerjs
@univerjs/core
functions
Repeatstringnumtimes

@univerjs/core v0.4.2Docs


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

submodules/univer/packages/core/src/shared/sequence.ts:66 (opens in a new tab)


Copyright © 2021-2024 DreamNum Co,Ltd. All Rights Reserved.