UNPKG

cspell

Version:

A Spelling Checker for Code!

6 lines (5 loc) 211 B
/** * Search for an item in a sorted array. * The value returned is either the position of the item or where it should be inserted. */ export declare function binarySearch<T>(arr: Array<T>, item: T): number;