Object.toString()

Given an object, get the string representation of the object.

Signature

Object.toString(target: Object): String

Description

The toString() method returns target as a string.

Parameters

Parameter Type Required Description

target

Object

Yes

Given object.

Return value

Type Description

String

String representation of target.

Examples

Object.toString({a: "test"})
"{ a: \"test\" }"

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!