title: Why I have this error: Object doesn't support property or method 'forEach' for Internet Explorer?
body: <p>I am Working on Javascript on a jenkins plugin using maven and I have this code:</p>
  
  <pre><code>   function arrayElements(element, index, array) 
       {
           var arrayPaths = element.split("\\");
           var projectSource = arrayPaths[2];
           var array = element.split("_");
           if (projectSource === global ) {             
               if (array[2]===filtro){
               document.getElementById("source").options.add(new Option(arrayPaths[3], element));
               }
           }
       }
      function fillCompiledSource(object, projects)
      {
          document.getElementById("source").innerHTML = "";        
          global = document.getElementById("branches").value;     
          projects.forEach(arrayElements)
      }
      var projects = new Array();&lt;/script&gt;&lt;script&gt;
      function fillCombo()
      {
           document.getElementById("source").innerHTML = "";
           global = document.getElementById("branches").value;     
           var array = document.getElementById("branches").value.split('/');
           global = array[1];
           projects.forEach(arrayElements)       
      }
  </code></pre>
  
  <p>This fail only in internet explorer and only when document Mode is IE8 standarts I don't know what is the reason and how I can resolve that.. </p>
  
  <p>Pd: The Internet explorer is 10</p>