Buy me a coffee
TypeScript
›
文字列
›
padStart
←
trimEnd
padStart
文字列
padEnd
→
先頭に文字を埋めて指定した長さにします。
構文
str.padStart(targetLength, padString?): string