Last active
August 29, 2015 14:07
-
-
Save matiascarranza/33d3f919419b78bc7ca3 to your computer and use it in GitHub Desktop.
Mike Heavers, http://mikeheavers.com/main/code-item/removing_duplicates_in_an_array_using_javascript
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
var uniqueArray = duplicatesArray.filter(function(elem, pos) { | |
return duplicatesArray.indexOf(elem) == pos; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment