Created
December 9, 2014 12:21
-
-
Save phaistonian/54ad523019ace6e7b6cb to your computer and use it in GitHub Desktop.
Remove dupes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var hash = {}; | |
[1,2,3,3,5,1].filter(function (item) { if (hash[item]) return true; hash[item] = false; return true; }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment