Skip to content

Instantly share code, notes, and snippets.

@weiland
Created July 24, 2014 08:50
Show Gist options
  • Save weiland/5d2ebb8e05d57b67aa20 to your computer and use it in GitHub Desktop.
Save weiland/5d2ebb8e05d57b67aa20 to your computer and use it in GitHub Desktop.
QuerySelector and simple ForEach provided by Array
var forEach = Array.prototype.forEach,
_$ = document.querySelectorAll.bind(document);
forEach.call(_$('.className'), function(element) {
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment