Feedback request on Seek and Destroy Basic Javascript Algorithm solution

Feedback request on Seek and Destroy Basic Javascript Algorithm solution
0

#1

Hi, so I am not sure if I have done this correctly… here is my solution.

function destroyer(arr) {
    var args = arguments;
    for (var i = 1; i < args.length; i++) {
        arr = arr.filter(function(el){
            return el !== args[i];
        });
    }
    return arr;
}

destroyer([1, 2, 3, 1, 2, 3], 2, 3);

Does anything jump out as wrong? Because I haven’t found a similar one.