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
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
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'); });