Reputation: 67
I'm trying to loop through data array and this works fine:
data.forEach((entry) => {
if(entry[1]) {
window.optionsAv = 1;
window.optionsAmnt = window.optionsAmnt + 1;
$('#timeswrap').show();
$('#tijden').append("<option class='single-tijd' data-optieId='" + entry[3] + "'>" + entry[0] + "</option>");
} else {
}
})
But it doesn't seem to work in Internet Explorer. What would be a better solution?
Upvotes: 0
Views: 847
Reputation: 65
"=>" is only in ES6 and Msie don't support ES6.
http://exploringjs.com/es6/ch_arrow-functions.html
Upvotes: 2