Amazon Vinyl
    Preparing search index...

    Function findBestLanguageMatch

    • Finds the best language match from a set of available languages. Returns the best matching language, or undefined if the set is empty. When no language is related, the first available language is returned.

      Parameters

      • target: string
      • available: ArrayLike<string>

      Returns string | undefined