String repeat()
Widely available since 2018-03-30
The repeat()
method of strings returns the original string repeated a number of times.
Learn more
Specifications
- ECMAScript® 2026 Language Specification (#sec-string-objects), from TC39 (Ecma International).
Browser support
- Chrome 41 Released on 2015-03-03
- Chrome Android 36 Released on 2014-07-16
- Edge 12 Released on 2015-07-29
- Firefox 24 Released on 2013-09-17
- Firefox for Android 24 Released on 2013-09-17
- Safari 9 Released on 2015-09-30
- Safari on iOS 9 Released on 2015-09-16
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist