Created
May 4, 2015 13:16
-
-
Save stoimen/c42dcc2d57f6f68c3941 to your computer and use it in GitHub Desktop.
JavaScript Array Unique
This file contains hidden or 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
array.filter(function(elem, index, self) { | |
return self.indexOf(elem) === index; | |
}); |
ayarushin
commented
Apr 19, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment