if(typeof upto == "undefined"){ upto = args.length; } if(typeof from == "undefined"){ from = 0; } for(var i = from; i < upto; ++i){ path.push(" "); path.push(args[i].toFixed()); }