On Wed, Nov 9, 2011 at 3:40 PM, Jorge <[email protected]> wrote:
> On 08/11/2011, at 22:17, John J Barton wrote:
> > Just as a point of comparison, I use this form:
> > Object.keys(o).forEach( function(key) {
> > body
> > });
>
> By the way, isn't that above a(nother) good use case for a goto, given
> that there's no (easy) way to break out of a forEach 'loop' ?
>
A goto? *Really*? Array.prototype.some is a good way to get forEach-like
behavior where you can break out of.
_______________________________________________
es-discuss mailing list
[email protected]
https://mail.mozilla.org/listinfo/es-discuss