Function getBestMatch
- getBestMatch(
name: string,
alternatives: readonly string[],
matchCase?: { matchCase?: boolean },
): string | nullParameters
- name: string
Name to search
- alternatives: readonly string[]
Alternatives to choose from
- matchCase: { matchCase?: boolean } = {}
Do a case sensitive compare (defaults to FALSE)
Returns string | null
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.