String.trim_end
String.trim_end
Function
Remove whitespace characters at the end of a string.
Syntax
string.trim_end()
Parameters
None.
Return value
| Type | Description |
|---|---|
| String | New string with trailing whitespace removed. |
Code Example
result = ' BT '.trim_end() // Output: BT print result
Notes
- The original string is not modified.