uniq - Liquid Filter Reference - 0.11.4

Filter Name uniq
Group Arrays
Version 0.11.4

Description

Removes any duplicate items in an array.

Examples

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

{{ an_array | uniq | join: ", " }}
ants, bugs, bees

Back to Filter List

Back to Liquid Reference for 0.11.4

 

 
Back to Documentation