Function sort_strings_by_matches_in_list

  • Sort strings by relevance (matching words in list) Strings will be promoted if they match most words in list, and have fewest remaining characters.


    • sorted array or strings


    • arr: string[]

      list of strings (this function modifies the original array, using .sort())

    • matchList: string[]

      list of words - first in list is most important

    Returns string[]

Generated using TypeDoc