Lava Filters - Concat

Category:Arrays

Description:Joins multiple arrays together so that the result contains all the items from the input arrays.
Input:
Lava: {% assign primaryColors = 'red, yellow, blue' | Split: ', ' %} {% assign secondaryColors = 'orange, green, violet' | Split: ', ' %} {% assign allColors = primaryColors | Concat: secondaryColors %} {{ allColors | Join:', ' }}
Output: red, yellow, blue, orange, green, violet