How to remove all values from var a = [1,2,2,2,3]
which are present in var b=[2]
If a values is present in b variable all of its occurrences must be remove
var a = [1,2,2,2,5];
var b = [2];
const result = a.filter(function(el){
return /// which condition .?
});
How to remove the b var value. and we have many logics please answer it briefly