binarySearchComparator
typealias binarySearchComparator = (@R|kotlin/ParameterName|(name = String(a)) ERROR CLASS: Symbol not found for JsAny, @R|kotlin/ParameterName|(name = String(b)) ERROR CLASS: Symbol not found for JsAny) -> Double(source)
A function used to compare two items while performing a binary search.
function compareNumbers(a, b) {
return a - b;
}
Content copied to clipboard
Parameters
a
An item in the array.
b
The item being searched for.