array.concat()
This method operates on an array. You typically fetch documents from a collection as a set, not an array. For the equivalent set method, see set instance methods. For differences between sets and arrays, see Sets vs. arrays. |
Description
The concat()
method creates an Array by copying the calling
array to a new array and appending otherArray.
the calling array and otherArray aren’t changed.
Examples
This example concatenates the second Array to the first:
[0, 1, 2, 3, 4].concat([3, 2, 1, 0])
[
0,
1,
2,
3,
4,
3,
2,
1,
0
]
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!