Function getBestMatch
- getBestMatch(
name: string,
alternatives: string[],
matchCase?: { matchCase?: boolean },
): null | stringParameters
- name: string
Name to search
- alternatives: string[]
Alternatives to choose from
- matchCase: { matchCase?: boolean } = {}
Do a case sensitive compare (defaults to FALSE)
Returns null | string
Best match or null if none found
- name: string
Find the best match for a string fiven a list of alternatives. Defaults to case insensitive match.