trimEndString

Returns a copy of this string with any whitespace characters removed from the end.

Syntax

trimEndString(content)

Returns

(string) a copy of this string with any whitespace characters removed from the end.

Parameters

content (string)
source

Usage

echo(trimEndString("\t\ntest trim3\t\n")); // prints "\t\ntest"