title: Should I pass a jQuery or DOM object as arguments? (Performance Question)
body: <p>Which is better performance wise.</p>
  
  <pre><code>foo(this);
  
  function foo(element) {
  
      $(element).index();
  
  }
  </code></pre>
  
  <p>Or should I do</p>
  
  <pre><code>foo($(this));
  
  function foo($element) {
  
      $element.index();
  
  }
  </code></pre>
  
  <p>Obviously taking into account that I will be using the argument a fair few times inside the function.</p>
  
  <p>Thanks!
  Connor</p>