I have the following bit of code which adjusts the headers of some parsed data:
var parsedData = transposed.map(row =>
row.reduce((acc, col, ind) => {
acc[headers[ind]] = col;
return acc;
}, { }));
The code works fine on Chrome/Edge/Firefox but fails on Internet Explorer saying there's a syntax error at: row =>.
I'm unable to determine where the syntax error is being thrown - I'm relatively new to javascript's map function so I may be missing something. Where in the above code snippet is the syntax error?