I have two different arrays and I want to remove all copies of first array's elements which exist in second one. I've tried some splice and indexOf methods but couldn't achieved it. Checked some of other posts but couldn't find what I'm exactly looking for. Here is an example code below. Thank you all.
let container = [1, 2, 2, 2, 3, 3, 3, 4, 5];
let removing = [2, 3];
function func(container, removing){
let result = //i want to write a function there which will remove all duplicates of "removing" from "container".
return result; // result = [1, 4, 5]
}