I have this piece of JavaScript code
price = price.replace(/(.*)\./, x => x.replace(/\./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?