Ah... sort of an (inverted) detect/any function.... Ok, why not :)
On Thu, Dec 18, 2008 at 11:58 AM, John Resig <[email protected]> wrote: > >> Isn't that what $.map does ? > > Not really. He wants it so that you can do: > > var ret = $.each(array, function(){ > if ( this == someValue ) > return false; > }); > > if ( ret == false ) { > // do something > } > > the return value will only equal false if a return false was done to > break the loop. > > --John > > > > -- Ariel Flesler http://flesler.blogspot.com --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "jQuery Development" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/jquery-dev?hl=en -~----------~----~----~----~------~----~------~--~---
