Revisiting: Searching JavaScript arrays with a binary search

from blog Oliver Caldwell's blog, | ↗ original
Last year I wrote a post called Searching JavaScript arrays with a binary search, it’s actually become quite popular and has seen a large amount of suggestions in the comments as well as helping out PowerArray. The problem is that it’s an untested, performance chasing, mess of a function. I’ve always wanted to redo this in a more formal manner...