Method String.trimLeft
Remove leading whitespace from the string.
-
Syntax
String String.trimLeft() - Return value A new string without leading whitespace.
-
Examples
- To remove whitespace before the string
// Define string var s = ' A string with whitespace '; // Output is 'A string with whitespace ' s.trim();
- Related String.trim String.trimAll String.trimRight
-
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.
