title: How to get computed property value into array variable
body: <p>I have a computed property function called: Total, this essentially calculates the name + value pairs of an array called prices, it's for a quotation form whereby a running total is added up as a user progresses through a multi-step form, values are then pushed into an array to keep things clean.</p>
  
  <p>This computed property allows me to echo the total on the page which is dynamically updated without any additional code, I can simply add total using handlebars to wherever I want on my page like so: <code>{{ total }}</code></p>
  
  <p>The problem I'm now facing is that I also want the value of 'total' to be included in a separate array, or at least added to an array and I can't seem to get it right.</p>
  
  <p>The working code which gets the values of my <strong>prices</strong> array which is by default empty is as follows:</p>
  
  <pre><code>computed: {
      total: function(){
        var total = [];
        Object.entries(this.prices).forEach(([name, value]) =&gt; {
          total.push(value)
        });
        return total.reduce(function(total, num){
          return total + num
        }, 0);
      }
    }
  </code></pre>
  
  <p>I want to do add something like this to my computed property:</p>
  
  <pre><code>this.quote.totalPrice = total
  </code></pre>
  
  <p>I've tried:</p>
  
  <pre><code>computed: {
      total: function(){
        var total = [];
        Object.entries(this.prices).forEach(([name, value]) =&gt; {
          total.push(value)
        });
        return total.reduce(function(total, num){
          return total + num
          this.quote.totalPrice = total 
        }, 0);
      }
    }
  </code></pre>
  
  <p>I'm not getting anything with this?</p>