title: How would you compare jQuery objects?
body: <p>So I'm trying to figure out how to compare two jQuery objects, to see if the parent element is the body of a page.</p>
  
  <p>here's what I have:</p>
  
  <pre><code>if ( $(this).parent() === $('body') ) ...
  </code></pre>
  
  <p>I know this is wrong, but if anybody understands what I'm getting at, could they point me towards the correct way of doing this?</p>