I have the following code block, that works on every browser except IE 11. Im picking content from a json file based on a select drop down. I have read that IE 11 has no arrow function, how do I re-write this to work in IE 11?
$.getJSON('./AJAX/myfile.json', function(data) {
var items = [];
var filter = $('#select').val();
var countryData = data.filter(el => el.selection === filter);
});
The issue is with the "(el => el.selection === filter);" -> "=>" arrow. Is there an alternative?