set operations for jquery sets
Via bower as jquery-sets.
bower install --save jquery-setsInclude on your page, after jQuery. Supports AMD.
You can now combine jQuery sets using set operations:
$.union(/* ..., ... */);
$.intersect(/* ..., ... */);
$.difference(/* ..., ... */);$(/* ..., ... */).union(/* ..., ... */);
$(/* ..., ... */).intersect(/* ..., ... */);
$(/* ..., ... */).difference(/* ..., ... */);The functions accept any selector, element, or object arguments supported by $().
They are also chainable.