Usuń pasujący element z dwóch tablic JavaScript
array1 = array1.filter(val => !array2.includes(val));
Embarrassed Echidna
array1 = array1.filter(val => !array2.includes(val));