Use Array.from() in $$

Tento commit je obsažen v:
Simon Willison 2021-12-14 17:27:00 -08:00 odevzdal GitHub
rodič 100f70f047
revize 6da364d813
V databázi nebyl nalezen žádný známý klíč pro tento podpis
ID GPG klíče: 4AEE18F83AFDEB23

Zobrazit soubor

@ -3,5 +3,5 @@ function $(sel, el) {
} }
function $$(sel, el) { function $$(sel, el) {
return (el || document).querySelectorAll(sel); return Array.from((el || document).querySelectorAll(sel));
} }