Skip to content
Log in

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?

Was this article helpful?