padStart / padEnd
Also written: padStart, padEnd
String methods that add characters (spaces by default) at the start or end until the string reaches a given length, handy for lining up columns.
Also written: padStart, padEnd
String methods that add characters (spaces by default) at the start or end until the string reaches a given length, handy for lining up columns.