Skip to content

Instantly share code, notes, and snippets.

@raycmorgan
Created January 18, 2012 22:08
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 raycmorgan/1636123 to your computer and use it in GitHub Desktop.
Save raycmorgan/1636123 to your computer and use it in GitHub Desktop.
function foo(key, callback) {
db.get(key, function (err, result) {
callback(err, result);
})
}
// is the same as:
function foo(key, callback) {
db.get(key, callback);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment