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)
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)
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.