Skip to content
Log in

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?

Was this article helpful?