PP.String.leftPad(string: String, size: Number, character: String);
string. Source string.
size. Minimum length of the string.
character. Character to pad the empty space on the left. This is an optional parameter, by default the white space is used.
The leftPad static method adds missing number of characters in the beginning of the string.
This method returns a String-type value.
The example of use is given in the with description of the String.ellipsis method.
See also: