Syntax error in IE 11

Syntax error in IE 11

Hi there,

My code works just fine in Chrome and Edge but in IE 11, I get syntax error at line var GDN. Any idea why?

  1. $('#Edit').on('submit', function () {
  2.       var GDN = $('#FirstName').val().split('|').filter((i) => i.length).length;
  3. });
Joe