lib/client.js
// Takes 3 arguments and creates an array with no trailing undefined items
Takes 3 arguments and creates an array with no trailing undefined items
Takes 3 arguments and creates an array with no trailing undefined items
function createArgs(arg1, arg2, arg3) {
  var args = [arg1, arg2, arg3];
  while (args.length) {
    var val = args.pop();
    if (val !== undefined) {
      args.push(val); break;
    }
  }
  return args;
}
function createArgs ( arg1 , arg2 , arg3 ) { var args = [ arg1 , arg2 , arg3 ] ; while ( args . length ) { var val = args . pop ( ) ; if ( val !== undefined ) { args . push ( val ) ; break ; } } return args ; }
Takes 3 arguments and creates an array with no trailing undefined items
Takes 3 arguments and creates an array with no trailing undefined items