DEV Community

Discussion on: 9 Tricks To Write Less JavaScript.

Collapse
 
jamesthomson profile image
James Thomson

That's a browser API consideration. ECMAScript (i.e. ES6) has no concept of a browser.

Besides that, have you used querySelector? You can do pretty much any similar jQuery selection with it.