How to get response data outside promise chain of Fetch?
<p>I'm using fetchApi to get data from my API.
In my RequestHelpers.js, I do this code</p>

<p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
<div class="snippet-code">
<pre class="snippet-code-js lang-js prettyprint-override"><code>module.exports = {
    fetchQuizCollection(){
      return fetch(HOST+API_KEY)
        .then((response) =&gt; response.json())
        .then((responseData) =&gt; {
          let gameData = responseData
          console.log(responseData) //It work
          return responseData
        })
      .done();
    }
}</code></pre>
</div>
</div>
</p>

<p>And I call that function in another file, I couldn't get my responseData</p>

<pre><code>    let sampleQuiz = RequestHelpers.fetchQuizCollection()
    console.log(sampleQuiz) //undefined 
</code></pre>

<p>is there any way to get data outside the promise ?</p>