so for example if i do removeFromArray([1, 2, 3, 4], 2, 3) it should return [1, 4] right now the index variable is only showing the index of the first argument of remove
function removeFromArray(arr, ...remove) {
let index = arr.indexOf(...remove);
let amountRemove = arguments.length - 1;
arr.splice(index, amountRemove);
return arr;
}