Skip to content

miva_array_binarysearch()#

Syntax
miva_array_binarysearch( key, array var, callback, data var )

Returns#

Returns the index of “key” in “array” or 0 if no match was found.

Parameters#

Parameter Description
key The value that will be searched for.
array var The array that will be searched.
callback The name of a callback function. See below.
data var Optional data that is passed through to the callback function