Interested in sponsoring this lovely little spot?

collapse Modifier

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
Docs feedback

Submit improvements, related content, or suggestions through Github.

Betterify this page →