toString()

Convert a set to a String representation.

Signature

toString(): String

Description

The toString() method converts a set to a String representation.

The source set isn’t changed.

Parameters

None

Return value

Type Description

String

String representation of the set.

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!