I have an array:
var arr = [1,2,4,5,1,2,3,4,5];
And I have another array:
var removeArr = [1,3,5];
I want it to remove elements in arr that has in the removeArr:
var result = arr.filter(function(item){
return item != removeArr[???];
});
I have tried to iterate it using loop but it doesn't work.