Skip to content

Instantly share code, notes, and snippets.

@cowboy
Forked from padolsey/gist:500145
Created August 1, 2010 13:32
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cowboy/503362 to your computer and use it in GitHub Desktop.
Save cowboy/503362 to your computer and use it in GitHub Desktop.
Like .quickEach, but subtly different
// Plugin released:
// http://benalman.com/projects/jquery-misc-plugins/#each2
@cowboy
Copy link
Author

cowboy commented Aug 2, 2010

Ok, major correction.. this is going to be WAY slower than the core .each in scenarios where the user doesn't need a jQuery object inside the callback... so it should definitely be a separate method. See http://jsperf.com/jquery-each-vs-quickeach/2

@cowboy
Copy link
Author

cowboy commented Aug 3, 2010

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment