Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

IE 11 Script1002 Filter syntax error

Hi there I get a error message in ie11 but not in chrome the error is Script1002 Syntax error

My code is as follows

 vm.NoOftroopMemEditReq = (vm.EventAttendees.TicketAttendees.filter(a => a.Attendees.some(Attendee => Attendee.IsEditRequired === true))).length;
like image 908
Nandkishor Avatar asked Oct 25 '17 08:10

Nandkishor


1 Answers

in IE 11 this symbol => don't work, replace => with ===

 vm.NoOftroopMemEditReq = (vm.EventAttendees.TicketAttendees.filter(function (a) { return a.Attendees.some(Attendee === Attendee.IsEditRequired === true); })).length;
like image 76
Shaik Matheen Avatar answered Nov 18 '22 14:11

Shaik Matheen