title: Break D3 Each Loop Without a flag
body: <p>Consider the following code:</p>
  
  <pre><code>circle.each(function (d) {
      //...code
  });
  </code></pre>
  
  <p>How can I break the loop? Is there a natural D3 way to break out of an each loop? I mean without a flag as follows:</p>
  
  <pre><code>var flag = false;
  circle.each(function (d) {
      if (flag) return;
      if (someCondition) flag = true;
      //...code
  });
  </code></pre>
  
  <p>I've tried returning false inside the if statement but it did not work (thought that maybe this would work the same as <code>jquery.each</code> but I was wrong):</p>
  
  <pre><code>circle.each(function (d) {
      if (someCondition) return false; //Not working
      //...code
  });
  </code></pre>