Modifier: collapse


Collapses an array of arrays into a flat array. If duplicate keys exist they will get stomped over.

numbers:
  - [one, two, three]
  - [four, five, six]
{{ numbers | collapse }}
numbers:
  - one
  - two
  - three
  - four
  - five
  - six

Additional Reading

Learn how to use and chain modifiers in the Antlers template guide.

Last modified on March 31, 2016