Checks if every non-whitespace character of search appears in text, in order, ignoring case. An empty search matches everything.
search
text
fuzzyMatch({search: 'opa', text: 'Option A'}); // truefuzzyMatch({search: 'apo', text: 'Option A'}); // false Copy
fuzzyMatch({search: 'opa', text: 'Option A'}); // truefuzzyMatch({search: 'apo', text: 'Option A'}); // false
Checks if every non-whitespace character of
searchappears intext, in order, ignoring case. An emptysearchmatches everything.