Created
September 17, 2013 02:02
-
-
Save aram208/6589215 to your computer and use it in GitHub Desktop.
Filter unique values from an array in dojo
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
cleanFilterEmails:function(values) { | |
var unique = {}; | |
return dojo.filter(values, function(value) { | |
if (!unique[value]) { | |
unique[value] = true; | |
return true; | |
} | |
return false; | |
}).sort(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment