Use Javascript or jQuery to create an array from an array
<p>Assume you have an array:</p>

<pre><code>var arrStateCityAll=['CA_Alameda','CA__Pasadena','CA_Sacramento','NY_Albany','NY_Buffalo','NY_Ithaca']
</code></pre>

<p>Is there an <em>easy</em> way using javascript and/or jQuery to filter the arrStateCityAll to get a new array (a subset of arrStateCityAll); something like this:</p>

<pre><code>// return's ['CA_Alameda','CA__Pasadena','CA_Sacramento']

var arrStateCityCA=FilterArray('CA',arrStateCityAll);
</code></pre>
