LiquidJS

TutorialsTagsFiltersPlaygroundAPI
Github
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expjoinjsonlastlstripmapminusmodulonewline_to_brpluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimestruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewherewhere_exp

join

v1.9.1

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

Input

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

Output


John and Paul and George and Ringo
Last updated: 2024-04-28 PrevNext
Contents
Back to Top
© 2024 Harttle
Documentation licensed under CC BY 4.0.
    TutorialsTagsFiltersPlaygroundAPI
Overviewabsappendat_leastat_mostcapitalizeceilcompactconcatdatedefaultdivided_bydowncaseescapeescape_oncefindfind_expfirstfloorgroup_bygroup_by_expjoinjsonlastlstripmapminusmodulonewline_to_brpluspoppushprependrawremoveremove_firstremove_lastreplacereplace_firstreplace_lastreverseroundrstripshiftsizeslicesortsort_naturalsplitstripstrip_htmlstrip_newlinessumtimestruncatetruncatewordsuniqunshiftupcaseurl_decodeurl_encodewherewhere_exp