- Preparing search index...
- The search index is not available
@techytools/fn
Function sort_strings_by_matches_in_list
-
sort_strings_by_matches_in_list(arr: string[], matchList: string[]): string[]
-
Parameters
-
arr: string[]
-
matchList: string[]
Returns string[]
Sort strings by relevance (matching words in list) Strings will be promoted if they match most words in list, and have fewest remaining characters.
Returns