Last active
October 8, 2017 10:07
-
-
Save ivantsov/06a2250333b119e4b64b60f714b20c9d 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
// 1 | |
foo() | |
.then(function(res) { | |
return bar(); | |
}); | |
// 2 | |
foo() | |
.then(bar); | |
// 3 | |
foo() | |
.then(bar()); | |
// 4 | |
foo() | |
.then(function(res) { | |
bar(); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment