trimRight

Summary

Removes whitespace from the end of the string.

Usage

public string trimRight()

Returns

The string with whitespace from the end removed.

Description

Removes whitespace from the end of the string.

Examples

Basic Usage
1
2
3
4
import System;
 
string foo = "    foo   ";
Console.log(foo.trimRight()); // "    foo"

Share

HTML | BBCode | Direct Link