Iterating through FormData in IE
<p>I'm using FormData to send information back to the server. In some cases however I need to read out the data before I send it.</p>

<p>Chrome allows you to iterate through the collection but IE does not supply the same methods.</p>

<p>The code below works in Chrome:</p>

<pre><code>// Create a test FormData object
var formData = new FormData();
formData.append('key1', 'value1');
formData.append('key2', 'value2');

// Display the key/value pairs
for(var pair of formData.entries()) {
   console.log(pair[0]+ ', '+ pair[1]); 
}
</code></pre>

<p><a href="https://jsfiddle.net/kx9zgsjn/" rel="noreferrer">JS Fiddle</a></p>

<p>Does anyone know how to achieve the same result in IE? Thanks.</p>