findFuzzyMatch
Stentor API Reference / stentor-utils/src / findFuzzyMatch
Function: findFuzzyMatch()
findFuzzyMatch<
T>(find,from,options?):T[]
Defined in: packages/stentor-utils/src/matcher.ts:123
From the provided string, find the closest match from the items provided.
This is a simple wrapper around Fuse.js
Type Parametersβ
Tβ
T = string | Record<string, unknown>
Parametersβ
findβ
string
The query to find a match from
fromβ
T[]
options?β
FuzzyMatchOptions = {}
Returnsβ
T[]