Skip to content

Instantly share code, notes, and snippets.

@tmpaul06

tmpaul06/then.js

Created Jul 3, 2017
Embed
What would you like to do?
Promise chain
// domeSomethingAsync is the first promise.
var result = doSomethingAsync()
// It has a `then` method for chaining
.then(...)
// result is a different Promise. It has its own then method
result.then(...) => returns another new Promise
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment