title: How to remove duplicated items in array on Twig
body: <p>How to remove duplicated items in array on Twig?</p>
  
  <p>I have array value in twig such as.</p>
  
  <pre class="lang-twig prettyprint-override"><code>{{ set array = ["testA","testB","testA","testC","testB"]  }}
  </code></pre>
  
  <p>I want to remove duplicated items and use only testA,testB,testC</p>
  
  <pre class="lang-twig prettyprint-override"><code>{% for name in array%}
  
   //skip the duplicate items and use only testA,testB,testC
  
  {% endfor %}
  </code></pre>
  
  <p>How can I make it ?</p>