LiquidJS

TutorialsTagsFiltersPlaygroundAPI
Github
Overviewabsappendat_leastat_mostcapitalizeceildatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependremoveremove_firstreplacereplace_firstreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere

uniq

Removes any duplicate elements in an array.

Input

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

Output


ants, bugs, bees
Last updated: 2020-12-22 PrevNext
Contents
Back to Top
© 2020 Harttle
Documentation licensed under CC BY 4.0.
    TutorialsTagsFiltersPlaygroundAPI
  • GitHub
Overviewabsappendat_leastat_mostcapitalizeceildatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependremoveremove_firstreplacereplace_firstreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere
English