title: How can I find out why two objects do not compare equal with angular.equals?
body: <p>I am using the following <strong>AngularJS code</strong>:</p>
  
  <pre><code>if (angular.equals(rowData, $scope.grid.backup[i])) {
     console.log('equal')
  }
  </code></pre>
  
  <p>Please note that AngularJS has an equals function that compares each element inside the object. </p>
  
  <p>The two objects look equal when I debug but Angular does not agree. I just cannot see what is not equal. Is there some other way I can do a comparison?</p>