Binary Search

    1. let array;
    2. array = [0,10,20,30,40,50,60,70,80,90,100,110,120,130,140,150];
    3. console.log(binarySearch({ array, number: 20 }) );
    4. i = 0;
    5. i = 0;
    6. console.log(binarySearch({ array, number: 130 }) );
    7. i = 0;
    8. array = [0,1,2,3,4,5];
    9. console.log(binarySearch({ array, number: 5 }) );
    10. array = [0,1,2,3,4,5,6];