Ending the Nested Tree of Doom with Chained Promises

added by DotNetKicks
9/27/2016 11:39:25 AM

1 Kicks, 473 Views

Julia Jacobs recently asked a question in the WatchMeCode community slack, about some asynchronous code she wanted to clean up. In this question, she wanted to know of good options for restructuring deeply nested promises without introducing any new libraries. Would it be possible to clean up the code and only use ES6 features?