How do I break out of an $.each in jquery?
<p><strong>How to I break out of the following jquery each method when a condition is met;</strong></p>

<pre><code>var rainbow = {'first' : 'red', 'second' : 'orange', 'third' : 'yellow'};

$.each(rainbow, function (key, color) {

  if (color == 'red') {

    //do something and then break out of the each method
    alert("i'm read, now break.");

  }

});
</code></pre>
