$([1,2,2,4]).filter(function(i,n){return n==2;});
it will return both
basically the array can be an array of dom elements or any array actually, if it is the array returned by the jQuery selector, you can do something like
$('div.someClass').filter(function(){return $(this).hasClass('someOtherClass')})
just for eg-> this will return all divs that have both someClass and someOtherClass (note: there are other ways to do this)
according to your comment, you can do
$(yourArray).filter(function(i,n){return n.Amount && n.Amount == conditionValue;});
labroo
source share