In my angular application I have 2 objects I want to compare. For that I use angular.equals(obj1, obj2). How ever there are some attributes which don't matter for my comparison and angular.equals() will return false.
What is the best and shortest way to do a comparison in Angular while ignoring some attributes? So for example obj1.name can be "John" and obj2.name can be "Tom" and i will still get true, when all other attributes are the same?