title: Find if jQuery object exists in Javascript Array
body: <p>I've a Javascript array and pushing the elements for later usage like this:</p>
  
  <pre><code>var array = [jQuery('.first').eq(0)];
  </code></pre>
  
  <p>Now if I try to check if the same element in array exists, it returns -1</p>
  
  <pre><code>jQuery.inArray(jQuery('.first').eq(0), array)
  </code></pre>
  
  <p>What is the perfect way to find if the object exists in array or not.</p>