Dupelcates

i saw this A script that removes duplicates from a tag?
but it doesnt make sense to me