#JavaScript devs: TIL (via @mmatuzo) that you can use the :scope pseudo class to select direct children of an element w/ .querySelectorAll().

matuzo.at/til/til47/

Embed

Screenshot

Posted

by

Hashtags: javascript