I have the following elements:
Question depends on what you are trying to do.
If you are trying to create a collection of those elements you can create a selector from the array:
var elemCollection = $( '.' + obj.join(',.') ).doSomething();
Can also be used in filter()
$existingElementCollection.filter( '.' + obj.join(',.') ).doSomething();
Or can be used in is()
var filterSelector = '.' + obj.join(',.');
$someCollection.each(function(){
if($(this).is( filterSelector ){
// do somthing for matches
}
});
DEMO