trim
Method of string.
Overloads
| Name | Description |
|---|---|
trim() -> Object | Removes whitespace from both ends of a string. |
trim() -> string | Trims the given string. |
trim() -> Object
Removes whitespace from both ends of a string.
Returns
A trimmed string.
Example
var value = " bob "
value.trim() + "|"
//-> bob|
trim() -> string
Trims the given string.