title: How to convert forEach in a for loop using key and value?
body: <p>Trying to send form data in JSON format but IE does not support formData.forEach </p>
  
  <pre><code> var form = document.querySelector('#Form');
               var formData = new FormData(form);
               var object = {};
               formData.forEach(function(value, key){
                   object[key] = value;
               });
               var json = JSON.stringify(object);
               xhr.send(json);
  </code></pre>
  
  <p>How can I convert that forEach  in for loop?
  Also, I've already added the polyfill so it's not that</p>