Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
MR414N-ID
GitHub Repository: MR414N-ID/botku2
Path: blob/master/node_modules/@adiwajshing/keyed-db/lib/BinarySearch.d.ts
1126 views
1
/**
2
* Binary search
3
* @param array the array to search in
4
* @param predicate return a value of < 0, if the item you're looking for should come before, 0 if it is the item you're looking for
5
*/
6
export default function binarySearch<T>(array: T[], predicate: (t: T) => number): number;
7
8