-2

I am using the following in IE and it doesnt work but does in chrome and edge

$scope.consList.some(element => element.Key.includes('Dev')))

How can i make this work in IE without breaking in the other browsers

1 Answers1

0

IE doesn't support arrow functions. They're in ES6, and IE is stuck mostly in ES5. You'll have to use functions:

$scope.consList.some(function(element) { return element.Key.includes('Dev'); });
Alexander van Oostenrijk
  • 4,644
  • 3
  • 23
  • 37