logoalt Hacker News

Kuyawa • today at 9:38 PM • 1 reply • view on HN

replace jquery with

  $ = (q) => document.querySelector(q)
and

  $$ = (q) => document.querySelectorAll(q)
and you're good to go

Replies

troupo • today at 9:48 PM

No, you're not.

jQuery returned useful collections. DOM methods return an anemic NodeList which doesn't even implement Array interface.

➕ show 2 replies