var arr1=[1,2,3,4,5,6,7,8,9,10,0],arr2=[7,0,6,5,2];
function filterArr(allArr,selecArr){
var midArr = arr1;
for(var item of arr2){
midArr = midArr.filter( (val1)=>{
return val1!=item;
} )
// console.log( midArr );
}
return midArr;
}
var res = filterArr(arr1,arr2);
console.log( res );