Skip to main content

uniq

Removes any duplicate elements from an array.

Basic Usage

{% set my_array = "a, b, a, c, b" | split(", ") %}
{{ my_array | uniq | join(", ") }}

Output: a, b, c