mirror of
https://github.com/coolaj86/ajquery.js.git
synced 2024-11-16 17:29:02 +00:00
Use Array.from() in $$
This commit is contained in:
parent
ceda8242d9
commit
c50bcca6ca
@ -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…
x
Reference in New Issue
Block a user