varargs.js
function varargs(args) {

  var argl = args.length;
  var arga;

  if (!Array.isArray(args)) {
    arga = new Array(argl);
    for (var i = 0; i < argl; i++) {
      arga[i] = args[i];
    }
  }

  return arga;
}
function varargs(args) {

  var argl = args.length;
  var arga;

  if (!Array.isArray(args)) {
    arga = new Array(argl);
    for (var i = 0; i < argl; i++) {
      arga[i] = args[i];
    }
  }

  return arga;
}
function varargs ( args ) { var argl = args . length ; var arga ; if ( ! Array . isArray ( args ) ) { arga = new Array ( argl ) ; for ( var i = 0 ; i < argl ; i ++ ) { arga [ i ] = args [ i ] ; } } return arga ; }
args is an 'arguments' object
args is an arguments object