uniq

Baklib

发布于:2025-01-02

删除数组中的所有冗余项。

输入


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

{{ my_array | uniq | join: ", " }}

输出



ants, bugs, bees

提交反馈