Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • 8
    This doesn't really answer the question about how to access previous results in the chain. Commented Jul 25, 2017 at 9:41
  • 2
    Every promise can get the previous value, what's your meaning? Commented Jul 26, 2017 at 7:47
  • 2
    Take a look at the code in the question. The aim is not to get the result of the promise that .then is called on, but results from before that. E.g. thirdPromise accessing the result of firstPromise. Commented Jul 26, 2017 at 10:29
  • This is the default behaviour of promises, I'm afraid this doesn't reply the original question, sorry. Commented Feb 22, 2021 at 11:32