Skip to content

Instantly share code, notes, and snippets.

@Sutto
Created April 4, 2009 04:00
Show Gist options
  • Select an option

  • Save Sutto/90104 to your computer and use it in GitHub Desktop.

Select an option

Save Sutto/90104 to your computer and use it in GitHub Desktop.
function(doc) {
emit(doc.origin, doc.target);
}
function(keys, values) {
var channels = [];
values.forEach(function(c) { if(channels.indexOf(c) < 0) channels.push(c); });
return channels;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment