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
Removes any duplicate elements from an array.
{% set my_array = "a, b, a, c, b" | split(", ") %}
{{ my_array | uniq | join(", ") }}
Output: a, b, c