Widely Available
Strings
id: string-pad
String padStart() and padEnd()
The
padStart() and padEnd() methods of strings return a string lengthened to a minimum number of characters by adding characters to the start or end of the string.
Baseline Status:
Achieved Widely Available on Oct 5, 2019 (Cross-browser Newly Available since Apr 5, 2017).
Desktop Browser Engine Support
Google Chrome
57
Supported
Mozilla Firefox
48
Supported
Apple Safari
10
Supported
Microsoft Edge
15
Supported
Mobile Browser Engine Support
Chrome Android
57
Firefox Android
48
Safari iOS
10
Specifications and References