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:
let arrayone = [2,4,6];
let arraytwo = [2,4,7];
I want the final array to be
finalarray = [2,4,6,7]
but concat() gives me
final array [2,4,6,2,4,7]
This was just for more clarification, the members of my arrays are objects.