function checkTextContainsKeywords(keywords, text) {
  for (let i = 0; i < keywords.length; i++) {
    if (!text.toUpperCase().includes(keywords[i].toUpperCase())) {
      return false;
    }
  }
  return true;
}
/**
 * Helper function to check if all keywords, case insensitive, are in the given
 * text.
 *
 * @param {string[]} keywords The collection of keywords.
 * @param {string} text The given text to search.
 * @return True iff all keywords present in the given text.
 */
Helper function to check if all keywords, case insensitive, are in the given
text.

@param {string[]} keywords The collection of keywords.
@param {string} text The given text to search.
@return True iff all keywords present in the given text.
Helper function to check if all keywords case insensitive are in the given text . @param { string [] } keywords The collection of keywords . @param { string } text The given text to search . @return True iff all keywords present in the given text .
function checkTextContainsKeywords(keywords, text) {
  for (let i = 0; i < keywords.length; i++) {
    if (!text.toUpperCase().includes(keywords[i].toUpperCase())) {
      return false;
    }
  }
  return true;
}
function checkTextContainsKeywords ( keywords , text ) { for ( let i = 0 ; i < keywords . length ; i ++ ) { if ( ! text . toUpperCase ( ) . includes ( keywords [ i ] . toUpperCase ( ) ) ) { return false ; } } return true ; }
Helper function to check if all keywords, case insensitive, are in the given
 text.
Helper function to check if all keywords case insensitive are in the given text .