Last active
December 7, 2016 10:56
-
-
Save aherve/6abbffa208e5f74cab3a717d18297025 to your computer and use it in GitHub Desktop.
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
| function demoCb (userId) { | |
| User.findById(userId, (err, user) => { | |
| if (err) { dealWithIt(err) } | |
| doSomethingAsync(user, (err, result) => { | |
| if (err) { dealWithIt(err) } | |
| // and so it goes... | |
| }) | |
| }) | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment