tablica minus tablica JavaScript
let difference = arr1.filter(x => !arr2.includes(x));
Fragile Fish
let difference = arr1.filter(x => !arr2.includes(x));
function diffArray(arr1, arr2) {
return arr1
.concat(arr2)
.filter(item => !arr1.includes(item) || !arr2.includes(item));
}