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

Service: padLeft

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

Input Parameter:

Name Type Description
text: String Input String value
paddingCharacter: String Character to be used for padding
length: Integer Length of the string with padding characters

Output Parameter:

Name Type Description
result: String Resultant string with padded characters to the left having size specified in the length in input.