blob: 3772c94b900812b1deb44f0533f3ba665f0cb3b8 (
plain)
1
2
3
4
5
6
7
|
if (window.NodeList && !NodeList.prototype.forEach) {
NodeList.prototype.forEach = function forEach(callback, thisArg = window) {
for (let i = 0; i < this.length; i += 1) {
callback.call(thisArg, this[i], i, this);
}
};
}
|