Replace HTMLCollection with NodeList #1

Merged
vlw merged 1 commit from refs/pull/1/head into master 2024-09-13 13:49:16 +02:00
vlw commented 2024-09-13 13:46:25 +02:00 (Migrated from codeberg.org)

I had some weird notion that querySelectorAll would return an HTMLCollection and not a NodeList.

[...document.querySelectorAll()].forEach(element => {});

Maybe I was doing this for no reason before, since NodeList already inherits the Array forEach() method...

I had some weird notion that `querySelectorAll` would return an `HTMLCollection` and not a `NodeList`. ```js [...document.querySelectorAll()].forEach(element => {}); ``` > Maybe I was doing this for no reason before, since `NodeList` already inherits the Array `forEach()` method...
Commenting is not possible because the repository is archived.
No description provided.