title: Maximum call stack size exceeded - Vue.js
body: <p>I've got a computed method that allows me to count a total price of my products and discount value and would like to get the value of: total - discount.</p>
  
  <pre><code>cartTotal() {
      var total = 0;
      var discount = Math.round((0.1 * this.cartTotal) * 100) / 100;
      this.cart.items.forEach(function(item) {
        total += item.quantity * item.product.price;
      });
      total -= discount;
      return total;
  }
  </code></pre>
  
  <p>Doens't work for me and I get that <code>Maximum call stack size exceeded</code> error.</p>