Function matchKeywords

  • Match a set of words to another set of words.

    Parameters

    • needle: string

      A set of words.

    • haystack: string

      A set of words to compare against.

    Returns boolean

    If all of the words in the needle words have a match in the haystack, return true; otherwise return false.