--- title: "Liquid filters: uniq" description: Removes any duplicate items in an array. api_name: liquid source_url: html: https://shopify.dev/docs/api/liquid/filters/uniq md: https://shopify.dev/docs/api/liquid/filters/uniq.md --- # uniq ```oobleck array | uniq ``` Removes any duplicate items in an array. ```liquid {% assign potion_array = 'invisibility, health, love, health, invisibility' | split: ', ' %} {{ potion_array | uniq | join: ', ' }} ``` ## Output ```html invisibility, health, love ```