Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 542 Bytes

ltrim.adoc

File metadata and controls

34 lines (27 loc) · 542 Bytes

ltrim()

Important

Deprecated in 5.0.

Replaced with method trimLeft() of the string instance.

ltrim(string) => String

Removes blanks (space and tab characters) from the left side of specified string.

Table 1. Parameters

string

String

String to trim

Return

Source string with blanks at the left side removed.

Example
ltrim("  abc def  "); // Will print "abc def  "