title: Js check if string is in array
body: <p>For example, I have string:</p>
  
  <pre><code>var str = "Overweek,Next 14 days";
  </code></pre>
  
  <p>And array:</p>
  
  <pre><code>var arr=["Next 14 days","Next month"];
  </code></pre>
  
  <p>How can I check if at leads one part of str (Overweek and Next 14 days) is in array. 
  I tried it:</p>
  
  <pre><code>$.inArray(str,array);
  </code></pre>
  
  <p>But it doesn't work.
  How can I solve it? </p>