I have this JavaScript code
const numberWithCommas = (x) => { return x.toString().replace(/\B(?=(\d{3})+(?!\d))/g, ".");}
This works fine in Firefox and Chrome, however IE gives me an syntax error pointing at => in my code.
Is there a way to use ES6 arrow syntax in IE?