javascript - How to extract data out of a Promise - Stack Overflow
http://go.microsoft.com/fwlink/?LinkID=617350
WEBApr 28, 2016 · Promise.then(result => { const { foo, bar } = result.data; // rest of script. }, errorHandler); Note: Bluebird library is used instead of native implementation, and I can't change from Promise to asnyc/await or Generators. javascript. promise. ecmascript-6. bluebird. es6-promise. edited Apr 28, 2016 at 10:21. asked Apr 28, 2016 at 9:59. Tobias Mühl
DA: 80 PA: 35 MOZ Rank: 70