FuzzyMatchOptions
Options controlling fuzzy matcher behavior.
Example
Section titled “Example”const fuzzyOptions: FuzzyMatchOptions = { caseInsensitive: true, substring: true, numericTolerance: 0.01,};Properties
Section titled “Properties”caseInsensitive?
Section titled “caseInsensitive?”
optionalcaseInsensitive?:boolean
Compare strings without case sensitivity.
coerceTypes?
Section titled “coerceTypes?”
optionalcoerceTypes?:boolean
Allow simple string/number/boolean coercions before failing.
ignoreArrayOrder?
Section titled “ignoreArrayOrder?”
optionalignoreArrayOrder?:boolean
Match arrays without requiring the same order.
numericTolerance?
Section titled “numericTolerance?”
optionalnumericTolerance?:number
Relative and absolute tolerance used for numeric comparisons.
substring?
Section titled “substring?”
optionalsubstring?:boolean
Treat either string containing the other as a match.