title: JavaScript: Break from fetch then
body: <p>I'm looking for a possibility to break from a fetch-then-block. In particular: I want to test a condition and if it's true, the next 'then' should not be executed. Is that possible?</p>
  <pre><code>fetch(url).then(response =&gt; {
      return response.text();
  }).then(text =&gt; {
      if (condition) {
          break
      }
  }).then(...)
  </code></pre>