title: How to convert this PromiseResult Object to an Array?
body: <p>I've successfully retrieved a promise from this async/await function:</p>
  <pre><code>  const fetchJSON= (async () =&gt; {
        const response = await fetch('http://localhost:8081/getJavaMaps')
        return await response.json()
    })();
  </code></pre>
  <p>Now I want to convert or assign the result to an array. This is what the result looks like in the console.log(fetchJSON):</p>
  <pre><code>[[PromiseResult]]: Object
  One: &quot;Batman&quot;
  Three: &quot;Superman&quot;
  Two: &quot;Ironman&quot;
  </code></pre>
  <p>However when I perform operations like:
  console.log(fetchJSON.One);
  console.log(fetchJSON.length);</p>
  <p>I always get:</p>
  <pre><code>undefined
  </code></pre>
  <p>I've tried this:</p>
  <pre><code> let myarray = Object.entries(fetchJSON);
  </code></pre>
  <p>But it doesnt convert the PromiseResult Object to 2d arrays.</p>