committed by
Randell Dawson
parent
48ed1ecbd1
commit
80d63bd169
@ -93,7 +93,7 @@ function binarySearch(arr, item, low, high) {
|
||||
return null;
|
||||
}
|
||||
|
||||
// Find the middle of the array.
|
||||
// Encuentra el centro de la matriz.
|
||||
var mid = Math.ceil((low + high) / 2);
|
||||
|
||||
if (arr[mid] === item) { // Found the item!
|
||||
|
Reference in New Issue
Block a user