TypeScriptStringpadStart
trimEnd

padStartString

padEnd

Pads the current string with another string until the resulting string reaches the given length, applied from the start.

Syntax

str.padStart(targetLength, padString?): string