title: Pass arguments to console.log as first class arguments via proxy function
body: <p><code>console.log</code> takes an unspecified number of arguments and dumps their content in a single line.</p>
  
  <p>Is there a way I can write a function that passes arguments passed to it directly to <code>console.log</code> to maintain that behaviour? For example:</p>
  
  <pre><code>function log(){
      if(console){
          /* code here */
      }
  }
  </code></pre>
  
  <p>This would not be the same as:</p>
  
  <pre><code>function log(){
      if(console){
          console.log(arguments);
      }
  }
  </code></pre>
  
  <p>Since <code>arguments</code> is an array and <code>console.log</code> will dump the contents of that array. Nor will it be the same as:</p>
  
  <pre><code>function log(){
      if(console){
          for(i=0;i&lt;arguments.length;console.log(arguments[i]),i++);
      }
  }
  </code></pre>
  
  <p>Since that will print everything in different lines. The point is to maintain <code>console.log</code>'s behaviour, but through a proxy function <code>log</code>.</p>
  
  <p>+---</p>
  
  <p>I was looking for a solution I could apply to all functions in the future (create a proxy for a function keeping the handling of arguments intact). If that can't be done however, I'll accept a <code>console.log</code> specific answer.</p>