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