How to check if a string is a substring of any element in an array
<p>I have an array</p>

<pre><code>var months = ["January", "February", "March", "April", \
    "May", "June", "July", "August", "September", "October", \
    "November", "December"];
</code></pre>

<p>I have strings like "Nov", "October", "Jun", "June", "Sept", "Sep" etc. The point is, the string can be a substring of one of the months.</p>

<p>What is the best way to compare the string to be a substring of the array elements? How do I find out the index of the month?</p>

<p>I am looking at javascript/jQuery.</p>

<p>I know I can just loop through the array checking against each element using <code>search</code> and break when found. I want something better.</p>
