Skip to content

Latest commit

 

History

History
34 lines (27 loc) · 528 Bytes

trim.adoc

File metadata and controls

34 lines (27 loc) · 528 Bytes

trim()

Important

Deprecated in 5.0.

Replaced with method trim() of the string instance.

trim(string) => String

Removes blanks (space and tab characters) from both sides of specified string.

Table 1. Parameters

string

String

String to trim

Return

Source string with blanks at both sides removed.

Example
print(trim("  abc def  ")); //will print "abc def"