Skip to content

Instantly share code, notes, and snippets.

@aram208
Created September 17, 2013 02:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save aram208/6589215 to your computer and use it in GitHub Desktop.
Save aram208/6589215 to your computer and use it in GitHub Desktop.
Filter unique values from an array in dojo
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