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?
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…