Created
October 6, 2017 02:52
-
-
Save toshinarin/81f42296353bee3507a978e0d09bf100 to your computer and use it in GitHub Desktop.
Iterate over elements
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
Array.prototype.forEach.call(document.querySelectorAll('.someClass'), function(node) { | |
console.log(node) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment