Parameters
arrValue - An array object.
sortMethod - The callback sort method.
compareMethod - The callback compare method.
showAlerts - Indicates if an alert should be displayed on an error.
Returns
The index of the matching item.
Syntax
| JavaScript |
|
static BinarySearch(arrValue, sortMethod, compareMethod,
showAlerts)
|
Returns the index of a search item in the array.
Example
| JavaScript |
// Returns the index of a search item in the array.
BinarySearch()
{
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.