title: How do I perform a function on a single jQuery object?
body: <p>I often make use of the <code>each</code> method in jQuery, such as the following:</p>
  
  <pre><code> $('#thing img').each(function(){
       //do some stuff
   });
  </code></pre>
  
  <p>...where the function is performed on each element in the jQuery object.
  Is there a method/syntax for performing an action on the only (or first matched) element in the object?</p>
  
  <p>I'm imagining something like</p>
  
  <pre><code> $('#thing img').do(function(){
       //do some stuff
   });
  </code></pre>
  
  <p><em>I don't need to use jQuery but can, as the application in question already makes use of it.</em></p>