Docs Menu
API Developer Guide / middleware / pub / string / rightPad

Service: rightPad

This service will add padding characters to the right of the string of specified length.

Input Parameter:

Name Type Description
text: String Main input String
padString: String Padding Character
length: Integer Lenth of the output string with padding characters

Output Parameter:

Name Type Description
result: String Padded right string of length specidifed in input.
rightPad: String The padding characters used for padding the string to the right.