Skip to content

Instantly share code, notes, and snippets.

View bradyhullopeter's full-sized avatar

Brady Hullopeter bradyhullopeter

View GitHub Profile
@bradyhullopeter
bradyhullopeter / NodeListUtils.js
Created April 18, 2019 17:57 — forked from TexRx/NodeListUtils.js
Extend NodeList object with some useful iteration utility functions
[].forEach.call( document.querySelectorAll(sel), function(el) {
});
NodeList.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.forEach = HTMLCollection.prototype.forEach = Array.prototype.forEach;
NodeList.prototype.map = HTMLCollection.prototype.map = Array.prototype.map;
NodeList.prototype.filter = HTMLCollection.prototype.filter = Array.prototype.filter;