News for hackers. Stuff that matters.
Re:ES6: The features I'm most excited about by mikekchar on Monday July 06, 2015 @02:33AM (#9837174)
It took me a while to understand this correct response because I couldn't understand the documentation for promises. For the benefit of any other person who was likewise confused...

then() returns a new promise resolved to the return value of the function. However, if that value is itself a promise, then it follows the promise chain and passes the eventual state to the next then()/catch() call.

There are no comments on this comment yet.