union - Liquid Filter Reference
On this page
Description
Returns the union of two lists
| Property | Value |
|---|---|
| Return Type | list |
| Category | lists |
Examples
```liquid
{{ list1 | union: list2 | join: “, “ }} ```
Output: 1, 2, 3, 4, 5, 6, 7
Was this article helpful?
Thanks for your feedback! It helps us improve our docs.