Skip to content

FuzzyMatchOptions

Options controlling fuzzy matcher behavior.

const fuzzyOptions: FuzzyMatchOptions = {
caseInsensitive: true,
substring: true,
numericTolerance: 0.01,
};

optional caseInsensitive?: boolean

Compare strings without case sensitivity.


optional coerceTypes?: boolean

Allow simple string/number/boolean coercions before failing.


optional ignoreArrayOrder?: boolean

Match arrays without requiring the same order.


optional numericTolerance?: number

Relative and absolute tolerance used for numeric comparisons.


optional substring?: boolean

Treat either string containing the other as a match.