Filtering duplicate array entries with JQuery
<p>How do i filter duplicates of two arrays before appending entries to a DOM node (<code>#list</code>)?</p>

<pre><code>(function($) { 
    $(document).ready(function() { 
        var item_category1 = $('li.category1').get(); 
        var item_category2 = $('li.category2').get(); 
        $('#list') 
            .append( $(item_category1).clone() ) 
            .append( $(item_category2).clone() ); 
    }); 
})(jQuery); 
</code></pre>
