push

push adds an element to an array.

Example

{% capture sample_array %}
[
"element1",
"element2",
"element3"
]
{% endcapture $}
{% assign sample_array = sample_array | parse %}
{% assign sample_array = sample_array | push: "element4" %}

Now the content of sample_array is: ["element1", "element2", "element3", "element4"]