title: Checking object equality in Jasmine
body: <p><a href="http://jasmine.github.io/" rel="noreferrer">Jasmine</a> has built-in matchers <code>toBe</code> and <code>toEqual</code>. If I have an object like this:</p>
  
  <pre><code>function Money(amount, currency){
      this.amount = amount;
      this.currency = currency;
  
      this.sum = function (money){
          return new Money(200, "USD");
      }
  }
  </code></pre>
  
  <p>and try to compare <code>new Money(200, "USD")</code> and the result of sum, these built-in matchers will not work as expected. I have managed to implement a work-around based on a custom <a href="https://stackoverflow.com/questions/1068834/object-comparison-in-javascript"><code>equals</code> method</a> and custom matcher, but it just seems to much work. </p>
  
  <p>What is the standard way to compare objects in Jasmine?</p>