LiquidJS

教程标签过滤器演示API
Github
概述absappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependremoveremove_firstreplacereplace_firstreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere

uniq

v1.9.1

移除数组中的重复元素。

输入

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

输出


ants, bugs, bees```
上次更新:2021-12-11 上一页下一页
目录
回到顶部
© 2021 Harttle
本文档通过 CC BY 4.0 授权。
    教程标签过滤器演示API
  • GitHub
概述absappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefirstfloorjoinjsonlastlstripmapminusmodulonewline_to_brplusprependremoveremove_firstreplacereplace_firstreverseroundrstripsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinestimestruncatetruncatewordsuniqupcaseurl_decodeurl_encodewhere
简体中文