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 */ 6export default function binarySearch<T>(array: T[], predicate: (t: T) => number): number; 7 8