ToArray
ToArray( object )
ToArray( object )
ToArray( object )
ToArray( object )
to_array( object )
ToArray( object )
Returns
An Array composed from the provided object
.
Examples
The following query uses ToArray
to convert an object into an array:
Arr(Arr(StringV(name), StringV(Dennis)), Arr(StringV(age), LongV(37)))
[[age 37] [name Dennis]]
[["name", "Dennis"], ["age", 37]]
[ [ 'name', 'Dennis' ], [ 'age', 37 ] ]
[['name', 'Dennis'], ['age', 37]]
[ [ 'name', 'Dennis' ], [ 'age', 37 ] ]
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!