Skip to content

Instantly share code, notes, and snippets.

@julesbou
Last active May 8, 2016 09:20
Show Gist options
  • Save julesbou/eccad42c8c2230f48a6ff092334a1c52 to your computer and use it in GitHub Desktop.
Save julesbou/eccad42c8c2230f48a6ff092334a1c52 to your computer and use it in GitHub Desktop.
NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]
// usage: $$('.list-of-elements').forEach(...)
// usage: $$('.list-of-elements').map(...)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment