jQuery - Search an array of objects to filter by property of object
<p>I have an array of objects, see below:</p>

<pre><code>var orderbyColumns = [Object { Descending=true, TableName="Users", ColumnName="RankCode", more...}, Object { Descending=false, TableName="Users", ColumnName="LastName", more...}]
</code></pre>

<p>Now I want to extract from orderbyColumns by the TableName and ColumnName properties.</p>

<p>It would be nice if the below worked, but it doesn't. Any ideas?</p>

<pre><code>var filter = $(orderbyColumns).find('[ColumnName=' + columnName + ']');
</code></pre>

<p>It would be nice if you could do:</p>

<pre><code>var filter = from x in orderbyColumns where x.TableName == "Users" &amp;&amp; x.ColumnName == "RankCode" select x;
</code></pre>
