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