Use Array.from() in $$
This commit is contained in:
parent
100f70f047
commit
6da364d813
|
@ -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));
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue