Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 553 Bytes

rtrim.adoc

File metadata and controls

34 lines (27 loc) · 553 Bytes

rtrim()

Important

Deprecated in 5.0.

Replaced with method trimRight() of the string instance.

rtrim(string) => String

Removes blanks (space and tab characters) from the right side of specified string.

Table 1. Parameters

string

String

Source string

Return

Source string with blanks at the right side removed.

Example
println(rtrim("  abc def  ")); //Will print "  abc def"