Possible Duplicate:
Simplest code for array intersection in javascript
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?
I use jQuery, but it seems that it provides no built in support for binary search for sorted arrays but just jQuery.inArray()
(not sure what algo it implements).