I have so many categories on the page and using each function in jquery, I am listing all of them. I want to display only unique categories from the list and not the repeated ones. What should I use in jquery?
jQuery(document).ready(function() {
jQuery( ".rpc-post-category a" ).each( function( index, element ){
console.log( jQuery( this ).text() );
});
});
Note: I want a list of unique values from all text values.