concat
Concatenates (joins together) multiple arrays. The resulting array contains all the items from the input arrays. String together concat
filters to join more than two arrays.
Input
-
fruits = ["apples", "oranges"] vegetables = ["carrots", "potatoes"]
{% assign everything = fruits | concat: vegetables %}
Output
-
['apples', 'oranges', 'carrots', 'potatoes']