0

enter image description here

now I get a promise object,but I don't know to get the PromiseValue from that promise. The structure is following that

Promise {[[PromiseStatus]]: "pending", [[PromiseValue]]: undefined}
        [[PromiseValue]]:Array(63)
Nemus
  • 3,879
  • 12
  • 38
  • 57
  • Possible duplicate of [What does \[\[PromiseValue\]\] mean in javascript console and how to do I get it](https://stackoverflow.com/questions/28916710/what-does-promisevalue-mean-in-javascript-console-and-how-to-do-i-get-it) –  Jan 19 '18 at 07:24

1 Answers1

0

You should use:

Promise.all([array where each element is a Promise])

Promise.all returns a single promise. Depending on the implementation, the response is an array containing the response from each Promise in sequence. If any of the Promise rejects, Promise.all rejects with the rejected value.

Quan Vuong
  • 1,919
  • 3
  • 14
  • 24