title: How to compare two objects in Angular not using reference of object
body: <p><a href="https://stackoverflow.com/questions/43634154/how-typescript-comparing-two-objects">how typescript comparing two objects?</a></p>
  
  <pre><code>originaltraits:{
  artistic:25,
  athletic:24,
  goodLooks:70,
  happiness:0,
  health:81
  }
  newtraits:{
  artistic:25,
  athletic:24,
  goodLooks:70,
  happiness:0,
  health:81
  }
  </code></pre>
  
  <p>I have these two objects I want to compare these objects' fields not using object reference in Angular then how to compare?</p>
  
  <p><a href="https://stackoverflow.com/questions/37785314/why-does-two-equal-objects-shows-not-equal-in-angular-2">Why does two equal Objects shows &#39;not equal&quot; in Angular 2</a></p>