1st Attempt — JavaScript Binary Search (Done in Lagos Traffic!)

I am not sure I can balance a Binary Search Tree before a US immigration officer. I however attempted implementing one in JS, this morning in traffic…
Here you go

After loading it into the browser with a script tag, you would run it like this

// randomized integers, 0 to 100
let odds = [97, 43, 15, 63, 67, 37, 49, 73, 3, 57, 83, 71, 47, 85, 91, 95, 61, 55, 23, 13, 69, 93, 17, 51, 99, 25, 45, 5, 81, 41, 77, 11, 21, 27, 35, 19, 59, 89, 1, 29, 33, 65, 39, 79, 31, 87, 9, 75, 7, 53];
let evens = [6, 36, 34, 66, 10, 30, 12, 86, 20, 78, 4, 32, 74, 60, 98, 80, 28, 90, 8, 2, 40, 48, 0, 52, 54, 14, 56, 68, 24, 18, 88, 96, 16, 64, 84, 94, 58, 50, 72, 26, 62, 82, 70, 44, 38, 42, 46, 92, 76, 22];
let all = [45, 89, 21, 91, 34, 14, 75, 25, 66, 2, 88, 48, 79, 84, 63, 23, 64, 68, 93, 90, 33, 8, 53, 12, 26, 10, 94, 7, 49, 31, 97, 5, 69, 15, 16, 17, 28, 40, 70, 54, 99, 36, 76, 86, 3, 6, 13, 35, 83, 87, 50, 43, 55, 58, 41, 0, 95, 96, 30, 9, 62, 52, 4, 81, 98, 67, 47, 27, 29, 78, 51, 56, 32, 65, 20, 19, 85, 60, 11, 73, 82, 24, 59, 37, 92, 61, 38, 80, 46, 18, 44, 39, 1, 77, 72, 74, 71, 22, 42, 57];
binarySearch(odds, 23);   // returns 11
binarySearch(evens, 56); // returns 28
binarySearch(all, 25); // returns 25

I am yet to do proper tests, measurements, tuning or the likes. Just wanted to put my itchy fingers to rest after reading this definition from wikipedia.