REPT

Repeats a text string a specified number of times

The REPT function repeats a given text string a specified number of times. Node references are also accepted as arguments.

Syntax

rept(value:string, count:number)

Arguments

value- A text string. Required.

count- A number indicating how many times the string should be repeated. Required.

Example

rept('LUMEL', 3)
//Returns “LUMELLUMELLUMEL".
REPT function

Excel equivalent

Reptarrow-up-right

Last updated

Was this helpful?