TypeScript문자열padStart

padStart문자열

앞에 문자를 채워 지정 길이로 만듭니다.

문법

str.padStart(targetLength, padString?): string