I have an array of array.
m = [[-100,100], [-100,-100], [-100,-100], [-100,100]]
And I want to remove the duplicates. I tried
aa = [...new Set(m)];
// and
let chkdup = (arr, tar) => tar.every(v => arr.includes(v))`.
But I can't remove the duplicates.
In Python, I can easily check this [-100,100] in m
. But I don't know the function in JS. includes
is not working for this case.