array.toString()

Convert an Array to a String representation.

Signature

toString() => String

Description

The toString() method converts an Array to a String representation.

The source Array isn’t changed.

Parameters

None

Return value

Type Description

String

String representation of the Array.

Examples

[1, 2].toString()
"[1, 2]"

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!