Problem
I have a bit of code that keeps throwing an Syntax error but only in IE. I ran the code in JSLint but it didn't help me understand the issue.
JavaScript
$('#sub').click(function() {
items = my_arr.filter(i => i.percent && i.unit);
console.log(items);
})
IE 11 (Error)
SCRIPT1002: Syntax error
File: scripts.js, Line: 3346, Column: 26
Check this ES6 Browser Compatibility table.
Arrow notation is ES6 feature and not supported by IE.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With