0
I have a fixed list that contains 20 items, and I have another list that comes from the bank. I need the items I have on my fixed list to be compared to what comes from the bank and, if there are similar items, to be deleted from the list that comes from the bank.
For the better understanding:
I have the first array coming from the bank:
var array1 = [1,2,3,4,5,6]
var array2 = [1,2,3]
I mean, I want the array1
become:
array1 = [4,5,6] -- Eliminando os itens em comum com o array2.
Of course with this example I can do using filter, but with the object that comes from the bank has to compare to work and I’m not able to make this comparison.
Using the perfect married some, thank you very much!
– user167000