UNPKG
ts-ds-tool
Version:
latest (0.1.5)
0.1.5
0.1.4
0.1.3
0.1.2
0.1.1
0.1.0
Data structure and algorithm of TypeScript
github.com/HaifengDu/ts-ds-tool
HaifengDu/ts-ds-tool
ts-ds-tool
/
resource
/
algorithms
/
binary-search
/
binarySearch.d.ts
4 lines
(3 loc)
•
166 B
TypeScript
View Raw
1
2
3
4
import
{
ICompareOne
}
from
"../../interface/ICompare"
;
declare
function
binarySearch<T>(
arr
:
Array
<T>,
target
: T |
ICompareOne
<T>):
number
;
export
{ binarySearch };