title: Filtering arguments through an argument, why will this not work?
body: <p>I want to remove all the <code>arguments</code> from the <code>array</code> passed in function <code>destroyer</code> which was passed as <code>arguments</code>.</p>
  
  <pre><code>function destroyer(arr) {
  
      var args = Array.prototype.slice.call(arguments); //turns arguments into arrays
  
      function checkArgs() {
          for (var i = 0; i &lt; arr.length; i++) {
              for (var j = 0; j &lt; args.length; j++) {
                  if (arr[i] == args[j]) {
                      delete arr[i];
                  }
              }
          }
      }
  
      return arr.filter(checkArgs);
  }
  
  destroyer([1, 2, 3, 1, 2, 3], 2, 3); //Remove 2nd, 3rd, etc arguments from first argument...??
  </code></pre>