getBestMatch | WebHare Platform SDK
WebHare Platform SDK
    Preparing search index...
    • Find the best match for a string fiven a list of alternatives. Defaults to case insensitive match.

      Parameters

      • 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