Can't use forEach with Filelist
<p>I'm trying to loop through a <code>Filelist</code>:</p>

<pre><code>console.log('field:', field.photo.files)
field.photo.files.forEach(file =&gt; {
   // looping code
})
</code></pre>

<p>As you can see <code>field.photo.files</code> has a <code>Filelist</code>:</p>

<p><a href="https://i.stack.imgur.com/ci9Er.png" rel="noreferrer"><img src="https://i.stack.imgur.com/ci9Er.png" alt="enter image description here"></a></p>

<p>How to properly loop through <code>field.photo.files</code>?</p>