Method String.trimRight
Remove trailing whitespace from a string.
-
Syntax
String String.trimRight() - Return value A new string without trailing whitespace.
-
Examples
- To remove whitespace after the string
// Define string var s = ' A string with whitespace '; // Output is ' A string with whitespace' s.trim();
- Related String.trim String.trimAll String.trimLeft
-
Download
Source
Unless otherwise noted all code in the JSLab Standard Library is licensed as GPLv3. See http://www.gnu.org/licenses/gpl.html for the entire license.
