Inside of any function, the Javascript variable arguments is available to the programmer to use. arguments is an array-like object, but the standard array operators like splice do not work without some conversion.

This is the snippet to convert:

  var args = [], 0);
  // use args here as a native Javascript array.