set.concat()
Concatenate two Sets.
Loading strategy: |
Description
Creates a Set by copying the calling Set to a new Set and appending another Set.
The calling Set and the other Set aren’t changed.
Examples
// `toSet()` converts an Array to a Set.
let setA = [1, 2, 3].toSet()
let setB = [4, 5, 6].toSet()
setA.concat(setB)
{
data: [
1,
2,
3,
4,
5,
6
]
}
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!