Skip to content

Instantly share code, notes, and snippets.

@davearel

davearel/forEach.js

Last active Dec 30, 2015
Embed
What would you like to do?
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
You can’t perform that action at this time.