Back to Sets
union
Set union of two arrays.
Syntax
union(a, b) → Array of unique elements from both
Backends
TypeScript
Description
Set union of two arrays.
Parameters
| Name | Description |
|---|---|
| a | First array |
| b | Second array |
Returns
Array of unique elements from both