Trim

Not available in this language yet.
Trim( value )
Trim( value )
Trim( value )
Not available in this language yet.
Trim( value )

Description

The Trim function returns a string which has both the leading and trailing white spaces, tabs, and new lines removed from the string.

Parameters

Argument Type Definition and Requirements

value

String

The string having the leading white spaces, tabs, and new lines removed.

Returns

A string value which has both the leading and trailing white spaces, tabs, and new lines removed.

Examples

Not available in this language yet.
Not available in this language yet.
System.out.println(
  client.query(
    Arr(
       Trim("Fire   "),
       Trim("    Fire    "),
       Trim("    \n\n\t\tFire\n\n\t\t    ")
    )
  ).get());
["Fire", "Fire", "Fire", "Fire"] 
Not available in this language yet.
Not available in this language yet.
Not available in this language yet.

Is this article helpful? 

Tell Fauna how the article can be improved:
Visit Fauna's forums or email docs@fauna.com

Thank you for your feedback!