Last active
December 30, 2015 03:59
-
-
Save davearel/7772923 to your computer and use it in GitHub Desktop.
Convenience function to utilize an Array's forEach method on NodeLists
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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