Dlaczego mam ten błąd: obiekt nie obsługuje właściwości lub metody „forEach” dla przeglądarki Internet Explorer?

Pracuję nad Javascriptem na wtyczce jenkinsa używając Maven i mam ten kod:

   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();</script><script>
    function fillCombo()
    {
         document.getElementById("source").innerHTML = "";
         global = document.getElementById("branches").value;     
         var array = document.getElementById("branches").value.split('/');
         global = array[1];
         projects.forEach(arrayElements)       
    }

To zawodzi tylko w Internet Explorerze i tylko wtedy, gdy tryb dokumentu jest standardem IE8, nie wiem, jaki jest powód i jak mogę to rozwiązać.

Pd: Internet Explorer to 10

questionAnswers(3)

yourAnswerToTheQuestion