if ('NodeList' in window) { if (!NodeList.prototype.each && NodeList.prototype.forEach) { NodeList.prototype.each = NodeList.prototype.forEach; } }