Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function unique1(a){for(var c=Object.create(null),d=[],b=a.length;b--;)c[a[b]]||(c[a[b]]=!0,d.push(a[b]));return d};
- unique1(document.body.innerHTML.match(/\w+/gim)).sort().join(", ");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement