Skip to content

Instantly share code, notes, and snippets.

@Ider
Created November 22, 2013 01:21
Show Gist options
  • Save Ider/7593128 to your computer and use it in GitHub Desktop.
Save Ider/7593128 to your computer and use it in GitHub Desktop.
Extend NodeList.prototype with Array.prototype.forEach, hence we could call forEach on return value of document.querySelectorAll().
NodeList.prototype.forEach = Array.prototype.forEach;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment