Last active
August 29, 2015 14:25
-
-
Save designfrontier/77f5d768e77bb7604065 to your computer and use it in GitHub Desktop.
pre-bernstein promise chains
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
somePromiseReturningFunction.then(function(data){ | |
data.num++; | |
return data; | |
}).then(function(data){ | |
data.num++; | |
return data; | |
}).then(function(data){ | |
data.num++; | |
return data; | |
}).then(function(data){ | |
data.num++; | |
return data; | |
}).then(function(data){ | |
data.num++; | |
return data; | |
}).then(function(result){ | |
console.log(result); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment