Created
September 18, 2015 06:09
-
-
Save iimos/7a9b8a703eca861fb272 to your computer and use it in GitHub Desktop.
document.querySelectorAll("*").forEach
This file contains 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
"forEach,map,filter,reduce,reduceRight,every,some".split(",").forEach(function(p) { | |
NodeList.prototype[p] = HTMLCollection.prototype[p] = Array.prototype[p] | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment