flat

Flattens an array.

{% json nested_array %}
    [[1,2], [3,4]]
{% endjson %}

{% assign ar = nested_array | flat %}

{{ar | log }}

Above snippet logs [1,2,3,4].

Last updated