union
Modified on Mon, 07 Aug 2023
Description
Create an array of unique values, in order, from all given arrays
Syntax
union(array1, array2, arrayN)
Parameters
Input Parameter | Type | Description |
---|---|---|
array1 | Array | The array to inspect. |
array2 | Array | The array to inspect. |
arrayN (optional) | Array | The array to inspect. |
Return value
Type |
---|
Array |
Sample
Example | Result | Description |
---|---|---|
union([2, 3], [1, 2]) | [1,2, 3] | Returns union for the two arrays |
union([2, 3], [1, 2], [3, 4]) | [1,2, 3, 4] | Returns union for the three arrays |
To view all the List functions, click here.
See Also
Was this article helpful?
That’s Great!
Thank you for your feedback
Sorry! We couldn't be helpful
Thank you for your feedback
Feedback sent
We appreciate your effort and will try to fix the article