uniq

Removes any duplicate items in an array.

Input

{% assign my_array = "ants, bugs, bees, bugs, ants" | split: ", " %}

{{ my_array | uniq | join: ", " }}

Output



ants, bugs, bees