uniq

Filter = uniq

Removes any duplicate elements in an array.

INPUT

OUTPUT

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

ants, bugs, bees