NodeList.prototype[Symbol.iterator] = Array.prototype[Symbol.iterator]; for (var x of document.querySelectorAll('p')) { console.log(x); }
-
-
@mathias Isn't it already part of standard? -
@RReverser It is, but stable Chromium doesn’t support that yet, although it does support `for-of`.https://twitter.com/mathias/status/521953574398738433 … - 1 more reply
New conversation -
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
JavaScript, HTML, CSS, HTTP, performance, security, Bash, Unicode, i18n, macOS.
