Skip to content

Instantly share code, notes, and snippets.

@Splode
Created Dec 18, 2017
Embed
What would you like to do?
Iterate over the array-like object, HTMLCollection using Array.prototype
// HTML Collection
const articles = document.querySelectorAll('.article')
// Iterate using Array.prototype
Array.prototype.forEach.call(articles, el => {
// iterate over el
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment