Pads a string on the right 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
padRight("5", 3); // "5 "padRight("42", 5, "0"); // "42000" Copy
padRight("5", 3); // "5 "padRight("42", 5, "0"); // "42000"
Pads a string on the right to reach the specified length.