Skip to content

Instantly share code, notes, and snippets.

@hanigamal
Created June 15, 2013 12:54
Show Gist options
  • Save hanigamal/5788039 to your computer and use it in GitHub Desktop.
Save hanigamal/5788039 to your computer and use it in GitHub Desktop.
// Remove duplicates from DOM (not done yet)
// Remove duplicates from DOM (not done yet)
function remDuplicates() {
var seen = {};
$('td.group').each(function() {
var txt = $(this).text();
if (seen[txt])
$(this).empty();
else
seen[txt] = true;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment