title: Remove repeated elements from v-for in VueJS
body: <p>I'm using the following code to display categories from an array. The array may contain duplicate categories. Is there any way I can only select unique elements in VueJS?</p>
  
  <pre><code>&lt;li v-for="product in products"&gt;
  {{product.category}}
  &lt;/li&gt;
  </code></pre>
  
  <p>Array:</p>
  
  <pre><code>products: [
        { id: '1', title: 'Test 1', category: 'Test 3' },
        { id: '2', title: 'Test 2', category: 'Test 1' },
        { id: '3', title: 'Test 3', category: 'Test 2' },
        { id: '3', title: 'Test 4', category: 'Test 1' },
        { id: '5', title: 'Test 5', category: 'Test 3' }
      ]
  </code></pre>