@onesy/algorithms
Version:
7 lines (6 loc) • 308 B
TypeScript
import { TMethod } from '@onesy/models';
export interface IBinarySearchRecursiveOptions {
sort?: boolean;
sortMethod?: TMethod;
}
export default function binarySearchRecursive(array: Array<number>, value: number, startValue?: number, endValue?: number, options?: IBinarySearchRecursiveOptions): any;