Skip to content

Instantly share code, notes, and snippets.

@clarknelson
Created November 28, 2017 20:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clarknelson/ef8781b6ba3c1ce25652be0b56a2b374 to your computer and use it in GitHub Desktop.
Save clarknelson/ef8781b6ba3c1ce25652be0b56a2b374 to your computer and use it in GitHub Desktop.
$('a').each(function(){
var $foo = $(this);
});
$('a').each(function(index, element){
var $foo = $(element);
});
@clarknelson
Copy link
Author

which is more performant

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