uniq - Liquid Filter Reference - 1.1.0
| Filter Name | uniq |
| Group | Arrays |
| Version | 1.1.0 |
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 Liquid Reference for 1.1.0
Back to Documentation