toString()
Converts the JavaScript value to a native string.
Declaration
func toString() -> String!Return Value
The string representation of the value.
Discussion
This method uses JavaScript type coercion rules to convert the value to a JavaScript string, then creates a native string from the result. Thus, this method can return a string even when the isString property is false; for example, an empty object becomes the string "[object Object]".