Modifier: flatten


Flattens a multi-dimensional array (a Grid or Replicator field for example) into a single dimension.

ingredients:
  spices: [garlic, cumin, ginger, turmeric, paprika, curry powder]
  vegetables: [tomatoes, onion]
  meat: [chicken]
{{ ingredients | flatten }}
ingredients:
  - garlic
  - cumin
  - ginger
  - turmeric
  - paprika
  - curry powder
  - tomatoes
  - onion
  - chicken
Last modified on March 31, 2016