Skip to content

Instantly share code, notes, and snippets.

@johnnyhalife
Created March 28, 2013 19:07
Show Gist options
  • Save johnnyhalife/5265920 to your computer and use it in GitHub Desktop.
Save johnnyhalife/5265920 to your computer and use it in GitHub Desktop.
if(!e['feed']['entry']) return;
var data = e['feed']['entry'].map(function(e){
if(!e['gd$email']) return null;
var entry = { name: e['title']['$t'], email: e['gd$email'][0]['address'] };
if(entry.email.indexOf('+') >= 0 || entry.email.indexOf('reply.mural.ly') >= 0 ) return null;
return entry;
}).filter(function(e){ return !!e; });
var unique = goog.array.uniq(data, false, function(e){ return e['email']; });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment