I want to check for duplicates in the list IDs in this function & not display them, All this is doing is adding the listIDs into the container but it is not checking for duplicates
var listIDs = [];
$.each(this.$el('lists', true), function(index, el) {
listIDs.push($(el).data('containerid'));
});
Any help would be greatful