title: How to search string for multiple values?
body: <p>This code works:</p>
  
  <pre><code>if ((filenameTmp == "thunderstorm") || 
     (filenameTmp == "fog") || 
     (filenameTmp == "hail") ||
     (filenameTmp == "heavy_snow") ||
     (filenameTmp == "rain") ||
     (filenameTmp == "sleet") ||
     (filenameTmp == "snow"))
  { document.getElementById("twilightBG").style.display = "none"; }
  </code></pre>
  
  <p>However I would like to shorten it, I thought this would work but it doesn't.</p>
  
  <pre><code>if(filenameTmp.indexOf ("thunderstorm", "fog", "hail", "heavy_snow", "haze", "sleet", "snow")&gt; -1)
  { document.getElementById("twilightBG").style.display = "none"; }
  </code></pre>
  
  <p>It does work if I only have a single search like this:</p>
  
  <pre><code>if(filenameTmp.indexOf ("haze")&gt; -1)
  { document.getElementById("twilightBG").style.display = "none"; }
  </code></pre>
  
  <p>How can I do it searching for multiple instances? Or is there a better way? Thanks.</p>