title: Parse text/csv from server and download it
body: <p>How to download file with data which comes from server in <code>text/csv</code> format? </p>
  
  <p>I'm using <code>fetch</code>. I have function like this </p>
  
  <pre><code>download(content, filename, contentType)
      {
          const a = document.createElement('a');
          a.href = 'data:text/csv;charset=utf-8,' + encodeURI(content);
          a.target = '_blank';
          a.download = filename;
          a.click();
      }
  </code></pre>
  
  <p>Response comes like <code>object</code>. </p>
  
  <p>Hope your help!</p>