title: Concat multiple arrays into one array without duplicates
body: <p>I want to push values of 3 arrays in a new array without repeating the same values</p>
  
  <pre><code>var a = ["1", "2", "3"];
  var b = ["3", "4", "5"];
  var c = ["4", "5", "6"];
  var d = [];
  
  function newArray(x, y, z) {
      for(var i = 0; i &lt; d.length; i++) {
          if(d.length == -1) {
              d[i].push(a[i])
          }
      }
  
      for(var i = 0; i &lt; d.length; i++) {
          if(d.length == -1) {
              d[i].push(y[i])
          }
      }
  
      for(var i = 0; i &lt; d.length; i++) {
          if(d.length == -1) {
              d[i].push(z[i])
          }
      }
  }
  
  newArray(a, b, c);
  
  d = ["1", "2", "3", "4", "5", "6"];
  </code></pre>