Skip to content

fuzzyBy beta ​

Function of @v12-engine/client/kit

ts
export declare function fuzzyBy<T>(items: readonly T[], query: string, keys: SearchOptions<T>['keys'], options?: Omit<SearchOptions<T>, 'keys'>): SearchHit<T>[];

The items the words typed find, the best first, with where they matched (SearchHit): createSearch for one search, its index kept while the same list is searched again. For a list of a few thousand that changes every keystroke, createSearch is the faster