title: How to get the value of a promise from async function
body: <p>I am struggling to understand how to get the value of a promise within Javascript</p>
  <pre><code>  const data = personId &amp;&amp; personId.map(async x =&gt; x.value)
  
    console.log(data);
  </code></pre>
  <p>it returns me: <a href="https://i.stack.imgur.com/cxVOd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/cxVOd.png" alt="enter image description here" /></a></p>
  <p>I would like to get the value of s121570.</p>
  <p>Thanks!</p>