Can anyone explain why the following angular.js code gives me an error in Internet Explorer 11 (Windows 8.1):
'Object doesn't support property or method 'hasOwnProperty''
if (key != 'prototype' && key != 'length' && key != 'name' && obj.hasOwnProperty(key)) {
iterator.call(context, obj[key], key);
}
The code belongs inside the forEach function in angular.js
Is there a solution or workaround to this problem?