title: jquery/javascript check string for multiple substrings
body: <p>I need to check if a string has one of three substrings, and if yes, to implement a function. I know I can check for one substring using <code>if (str.indexOf("term1") &gt;= 0)</code> but is there a way to check for multiple substrings short of using several instances of this code?</p>
  
  <p>TIA</p>