Pads a string on the left to reach the specified length.
The string to pad.
The desired total length of the string after padding.
The character to use for padding. Defaults to a space.
The padded string.
1.1.0
padLeft("5", 3); // " 5"padLeft("42", 5, "0"); // "00042" Copy
padLeft("5", 3); // " 5"padLeft("42", 5, "0"); // "00042"
Pads a string on the left to reach the specified length.