540 Single Element In A Sorted Array Javascript Binary Search

540 Single Element In A Sorted Array Javascript Binary Search