join

使用参数作为分隔符,将数组中的项组合成一个字符串。

输入

{% assign beatles = "John, Paul, George, Ringo" | split: ", " %}

{{ beatles | join: " and " }}

输出



John and Paul and George and Ringo