Skip to content

str::padLeft ​

padLeft(input: String, padding: Integer) ​

ParameterTypeDescription
inputStringThe string to pad.
paddingIntegerThe desired total length of the padded string.

Returns ​

(String) The given input string with spaces added to the left.