Skip to main content

concat

Concatenates (joins) two arrays to create a new array. The passed array is appended to the original array.

Basic Usage

  {% set array1 = [1, 2] %}
{% set array2 = [3, 4] %}
{% set combined_array = array1 | concat(array2) %}
{{ combined_array | join(", ") }}

Output: 1, 2, 3, 4