I have two javascript Object
    var obj1= {
           key1:'value1',
           key2:'value2'
    };
And
 var obj2= {
           key1:'value1',
           key2:'someOtherValue'
    };
As you can see there is one difference b/w both objects at key2, i want a angular foreach loop which can check both objects and can return a console message "Difference is at key2". I already tried angular foreach but it doesn't allow more than one object so how should i compare?


