| hide_title | true |
|---|---|
| custom_edit_url | |
| pagination_prev | |
| pagination_next |
Home > @rushstack/node-core-library > Text > padStart
Append characters to the start of a string to ensure the result has a minimum length.
Signature:
static padStart(s: string, minimumLength: number, paddingCharacter?: string): string;|
Parameter |
Type |
Description |
|---|---|---|
|
s |
string | |
|
minimumLength |
number | |
|
paddingCharacter |
string |
(Optional) |
Returns:
string
If the string length already exceeds the minimum length, then the string is unchanged. The string is not truncated.