刪除數(shù)組中的所有冗余項(xiàng)。
輸入
{% assign my_array = "ants, bugs, bees, bugs, ants" | split: ", " %} {{ my_array | uniq | join: ", " }}
輸出
ants, bugs, bees
? Copyright 2023 深圳藍(lán)曬科技有限公司. 粵ICP備2023054553號(hào)-1