Text Repeater
How This Converter Works
Repeats the input using JavaScript String.repeat with the repeat field as its count. The count must be a nonnegative whole number; invalid counts and output strings that exceed the browser limit are reported.
Formula or rule
Output = input.repeat(times) for a nonnegative safe-integer count; a RangeError from an oversized result is reported.
Example
- Input
- Text: ha; times: 3
- Calculation
- Concatenate three copies of ha.
- Result
- hahaha