Code:
async function main() {
  const arr = [];
  symbols.forEach((symbol) => {
    const record = {
      [symbol]: {
        quote: priceQuote(token, symbol),
        history: makePriceHistoryRequest(token, symbol, slow * 2),
      }
    }
    arr.push(record);
  })
    return arr;
}
I call main as follows:
main().then(res=>{
  console.log(res);
})
It returns quote and history as Promise. How can I get into nested pending promise?
Thanks!
 
    