@homebridge/ciao
Version:
ciao is a RFC 6763 compliant dns-sd library, advertising on multicast dns (RFC 6762) implemented in plain Typescript/JavaScript
9 lines • 375 B
TypeScript
/**
* Insert into sorted array using binary search.
*
* @param array - An already sorted array.
* @param element - The element to be inserted.
* @param comparator - Comparator to determine the order for the elements.
*/
export declare function sortedInsert<T>(array: T[], element: T, comparator: (a: T, b: T) => number): void;
//# sourceMappingURL=sorted-array.d.ts.map