13
rated 0 times
[
18]
[
5]
/ answers: 1 / hits: 22908
/ 8 Years ago, tue, october 18, 2016, 12:00:00
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?
More From » regex