The other posts I've seen deals with 1D Arrays, so...
Array1
[
["PE","151"],
["PE","160"],
["PE","188"]
]
Array 2
[
["PE","193"],
["PE","173"],
["PE","188"]
]
Expected Result
[
["PE","151"],
["PE","160"]
]
I've tried using filter
, but I'm not sure I can get the element to compare.
const newItems = Array1.filter(el => Array2[1].indexOf(el[1]) === -1)
Thanks!