title: How to calculate total price of basket Vuejs Vuex
body: <p>I have a store in which there is an array named <code>basketContents</code></p>
  <p>Like this:</p>
  <pre><code>state: {
  basketContents: [
  {
       name: .....
       quantity: 2
       price:1000
  },
  {
       name: .....
       quantity: 6
       price:120
  },
  .........
     ]
  }
  </code></pre>
  <p>From this I want to calculate the total price of the whole basket and display it in a component is there an easy way to do so? The total price should also change whenever I change an items quantity.
  I am new to this.</p>