trimLeft

Summary

Removes whitespace from the beginning of the string.

Usage

public string trimLeft()

Returns

The string with whitespace from the beginning removed.

Description

Removes whitespace from the beginning of the string.

Examples

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

Share

HTML | BBCode | Direct Link