Chrome, Safari and Opera now support querySelectorAll().forEach() 
`qSA` returns a non-live `NodeList`. `break` is useful if you can stop processing the elements mid-loop. +@bdc
-
-
find is good for that (although maybe not as initially intuitive). Array iterator methods' commitment to intent can be a boon…
-
Note that `break` was just an example. There’s also `continue`. `for-of` offers more flexibility than `forEach`.
End of conversation
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.