How to get resolved data from a Promise
<p>Consider the following code snippet:</p>

<pre><code>let primise = new Promise((resolve, reject) =&gt; {
    resolve({ x: 10 });
});

setTimeout(() =&gt; {
  // At some moment in the future (Promise is resolved)
    console.log(promise);
}, 200);
</code></pre>

<p>Now, the promise was resolved with <code>{ x: 10 }</code>. How do I access this data using the resolved promise ? </p>

<p>Inspecting the promise object I can see the data is available as <code>promise._v</code> but this doesn't look right. Any help would be appreciated</p>