title: Adding two arrays with existing and repeated memebers of two arrays replacing the repeated ones
body: <p>I'm in a situation in which for me it is vital to add two arrays together and create a new array which does not have the memebers of tow arrays which are the same being added to the final array as multiple members but rather just one,I just want to have one memeber as the representive of those identical members from two arrays in the final array, not having them as multiple memebers in the final array,I tried concat() and it did exactly what I don't want.
  How can I do this, guys?
  like:</p>
  
  <pre><code>let arrayone = [2,4,6];
  let arraytwo = [2,4,7];
  </code></pre>
  
  <p>I want the final array to be </p>
  
  <pre><code>finalarray = [2,4,6,7]
  </code></pre>
  
  <p>but concat() gives me</p>
  
  <pre><code>final array [2,4,6,2,4,7]
  </code></pre>
  
  <p>This was just for more clarification, the members of my arrays are objects.</p>