javascript remove elements present in 2 arrays code example
Example: remove matching element from two array javascript
array1 = array1.filter(val => !array2.includes(val));
array1 = array1.filter(val => !array2.includes(val));