downshift
Version:
🏎 A set of primitives to build simple, flexible, WAI-ARIA compliant React autocomplete, combobox or select dropdown components.
8 lines (7 loc) • 302 B
TypeScript
/**
* Return the index of the item that starts with the character.
* @param character The start of the item string.
* @param startIndex The index to start searching.
* @returns The index of the item.
*/
export declare function getItemIndexByCharacter(character: string, startIndex?: number): any;