Files
liquid/_filters/join.md
2019-07-28 16:27:13 -04:00

496 B

title, description
title description
join Liquid filter that joins an array of strings into a single string.

Combines the items in an array into a single string using the argument as a separator.

Input

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

{{ beatles | join: " and " }} {% endraw %}


<p class="code-label">Output</p>
```text
{% assign beatles = "John, Paul, George, Ringo" | split: ", " %}

{{ beatles | join: " and " }}