Find what all amongst a bunch of integers exist in a sorted array
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/1885557/simplest-code-for-array-intersection-in-javascript">Simplest code for array intersection in javascript</a>  </p>
</blockquote>



<p>I have a sorted array of integers in javascript. I need to find out which all amongst a bunch of integers exists in that sorted array. 
What would be the fastest way to do that? </p>

<p><em>I use jQuery, but it seems that it provides no built in support for binary search for sorted arrays but just <code>jQuery.inArray()</code>(not sure what algo it implements).</em> </p>
