I'm sorry, break doesn't work?
http://jsfiddle.net/5Hm4w/2/

broke my two arrays (one of elements, one of numbers) - maybe I'm
misunderstanding the question, lack of sleep will do that.

On Oct 21, 12:17 pm, Perrin Perrin <stardistroye...@gmail.com> wrote:
> yes.
>
>
>
> On Thu, Oct 21, 2010 at 11:00 AM, stratboy <em...@reghellin.com> wrote:
> > Good. 1 question: do array.every and array.some process the elements
> > ALWAYS in sequence from index 0 to length-1? Or are they casual or not
> > always in sequence? I know I can take a look to the source, but I'm
> > lazy and I also know that YOU know :)
>
> > On 21 Ott, 17:17, Aaron Newton <anut...@gmail.com> wrote:
> > > Or use array.some and return true when you want to stop.
>
> > > -Aaron
>
> > > Sorry for any typos. Big fingers , tiny buttons.
>
> > > On Oct 21, 2010, at 7:41 AM, stratboy <em...@reghellin.com> wrote:
>
> > > > :) Thank you Mr. Glazer! :)
>
> > > > On 21 Ott, 16:37, אריה גלזר <arieh.gla...@gmail.com> wrote:
> > > >> Here:http://gist.github.com/638585
>
> > > >> Basically replaced the old $each with a new one that supports Break
> > (will
> > > >> only work for 1.3).
>
> > > >> example:http://jsfiddle.net/ariehg/bBKJm/
>
> > > >> On Thu, Oct 21, 2010 at 2:34 PM, Rolf -nl <plentyofr...@gmail.com>
> > wrote:
> > > >>> yes, nice n dirty with an exception..hehe..
> > > >>> or use a while and a flag to stop the while loop (when you find a
> > > >>> result or something)
>
> > > >>> On Oct 21, 2:31 pm, אריה גלזר <arieh.gla...@gmail.com> wrote:
> > > >>>> No good way of doing it. I'm working on a nice workaround for it,
> > but in
> > > >>> the
> > > >>>> mean time, the simplest way is to throw an exception
>
> > > >>>> On Thu, Oct 21, 2010 at 2:19 PM, stratboy <em...@reghellin.com>
> > wrote:
> > > >>>>> Hi! Is there a way to stop an each loop just like I can do with a
> > for
> > > >>>>> loop by using a break statement?
>
> > > >>>> --
> > > >>>> Arieh Glazer
> > > >>>> אריה גלזר
> > > >>>> 052-5348-561
> > > >>>> 5561
>
> > > >> --
> > > >> Arieh Glazer
> > > >> אריה גלזר
> > > >> 052-5348-561
> > > >> 5561

Reply via email to