I need to export JSON data to CSV file.I followed this link to export my data to csv file. Exporting is working perfectly in chrome but it is throwing syntax error (for Arrow function) in IE.
ArrowFunction
// format the data
itemsNotFormatted.forEach((item) => {
itemsFormatted.push({
model: item.model.replace(/,/g, ''), // remove commas to avoid errors,
chargers: item.chargers,
cases: item.cases,
earphones: item.earphones
});
});
I'm new to javascript. Can you please guide me to write the same function that will support in IE?
Please refer this link for full code.
Thanks