DEV Community

Discussion on: Matching elements with selectors in JS

Collapse
 
healeycodes profile image
Andrew Healey

I used closest to refactor some recursive code recently! It's a super cool method. I didn't know about matches though -- so thanks 😊

How are you finding daily code blogging?

Collapse
 
samthor profile image
Sam Thorogood

Matches is probably less useful but is really a precursor to closest.

Daily blogging is going well but—having a newborn is complex, we've lots of medical appointments—so I've slipped a bit so I'm now making each post about ~2 hours before my artificially self-imposed deadline (midnight on the day, in Sydney time).

I have a remarkably large short list of topics that I'd like to blog about, so I'm not low on ideas. I just need to build up a buffer again 🤣