Skip to content

Instantly share code, notes, and snippets.

@espringe
Created January 29, 2014 18:55
Show Gist options
  • Save espringe/8694471 to your computer and use it in GitHub Desktop.
Save espringe/8694471 to your computer and use it in GitHub Desktop.
return function(what) {
console.log('What is: ... ', what);
function map(doc) {
if (doc.type === what)
emit(doc._id, doc);
}
Database.query(map, function(){});
}
@espringe
Copy link
Author

Output:

What is ... account
Uncaught ReferenceError: what is not defined

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment