Skip to content

Instantly share code, notes, and snippets.

@davearel
Last active December 30, 2015 03:59
Show Gist options
  • Save davearel/7772923 to your computer and use it in GitHub Desktop.
Save davearel/7772923 to your computer and use it in GitHub Desktop.
Convenience function to utilize an Array's forEach method on NodeLists
var forEach = function(list, callback, ctx) {
return Array.prototype.forEach.call(list, callback, ctx);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment