The Fusion
class provides functionality for fuzzy matching strings allowing for a certain number of errors. It supports ASCII, Unicode, and a wide range of other configuration options.
Fusion
is a generic class that operates on a collection of dataT
- It performs fuzzy matching on strings obtained through key paths on
T
- Matching allows up to a specified number of "errors" given by the
bitErrorLimit
property - ASCII or Unicode strings are supported via the
encoding
property - Matching can be case and diacritic insensitive through the
foldingOptions
property
Fusion
is greatly inspired by Fuse.js and uses a modified Bitap algorithm to efficiently search for fuzzy matches. See the class documentation for more details.