title: Object gets logged in the console, but comes out empty when calling API
body: <p>There's something I don't understand when running the following piece of code:</p>
  <pre class="lang-js prettyprint-override"><code>const handleCalculations = async ({
      configuration,
      product,
  }) =&gt; {
      const configurations = [];
      const results = [];
      
      /*
      configurations get populated with elements
      */
      
      await Promise.all(configurations.map(async (configuration) =&gt; {
          const calcResult = await getResults(configuration);
          results.push({ calcResult });           // option #1: working
          results[configuration.id] = calcResult; // option #2: not working - empty output
      }));
      
      console.log({ results });
      
      return {
          message: 'OK',
          result: results,
      };
  };
  </code></pre>
  <p>Having option #1 enabled, I receive an array of arrays, and they're distinguished only by <code>result</code> key, which is a bit problematic when there are many arrays and one has to navigate between them pretty quickly. That's why I tried to enable option #2: that would prepend every array with a unique <code>ID</code> key. And this is how it's logged in the console, outside of the <code>Promise</code>:</p>
  <pre><code>{
      results: [
          'a389': [...],
          'f31a': [...],
          'd50d': [...]
      ]
  }
  </code></pre>
  <p>However, returned value is empty: it's just:</p>
  <pre><code>{
      &quot;message&quot;: &quot;OK&quot;,
      &quot;result&quot;: []
  }
  </code></pre>
  <p>Why is this happening?</p>