Loop through child elements in Twig like Element::children() When dealing with a renderable array in PHP, I can use Element::children() to access the elements that are not # properties but subordinated renderable elements (form items inside a fieldset, items inside a field widget, etc). For instance, this snippet from file.module:

&lt;?php
if ($element['#multiple']) {
  foreach (Element::children($element) as $name) {
    // ...
  }
}
?&gt;


How can I do the same in a Twig template? If I do {% for child in element %}, it will include also #type, #cache etc.
{% for key, child in element if key|first != '#' %}
  &lt;div&gt;{{ child }}&lt;/div&gt;
{% endfor %}