Created
April 26, 2013 13:10
-
-
Save jboner/5467267 to your computer and use it in GitHub Desktop.
Lost In Callback Hell
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
lost(arg, function(err, result) { | |
if(err) return console.log(err); | |
In(result, function(err, result) { | |
if(err) return console.log(err); | |
callback(result, function(err, result) { | |
if(err) return console.log(err); | |
hell(result); | |
}); | |
}); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment