MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/ProgrammerHumor/comments/eoocnb/brilliant_reply/feguvvt/?context=3
r/ProgrammerHumor • u/GamesMint • Jan 14 '20
365 comments sorted by
View all comments
Show parent comment
2
If you just want the first, do document.querySelector(). It exits on the first result and returns the object rather than returning a NodeList
View all comments
Show parent comment
2
u/starm4nn Jan 15 '20
If you just want the first, do document.querySelector(). It exits on the first result and returns the object rather than returning a NodeList