TypeScript文字列padStart
trimEnd

padStart文字列

padEnd

先頭に文字を埋めて指定した長さにします。

構文

str.padStart(targetLength, padString?): string