title: Using Fetch response in a if statement
body: <p>I have a fetch function that takes a URL and gives out the response. </p>
  
  <pre><code>public getHTTPResponse(URL : string) {
      fetch(URL).then(function(response) {
          return response;
      })
  }
  </code></pre>
  
  <p>I try to use the response in a IF-statement. </p>
  
  <p>For example if the response is <code>200</code> it should be true. So far I have:</p>
  
  <pre><code>if (this.getHTTPResponse(item.ListUrl) === )
  </code></pre>
  
  <p>Where <code>item.ListUrl</code> is a link. I can't get my head around on what I should have on the right side of the operator to test if the response is <code>200</code> (or any other for that matter). Any help?</p>