Use Array.from() in $$

このコミットが含まれているのは:
Simon Willison 2021-12-14 17:27:00 -08:00 committed by GitHub
コミット 6da364d813
この署名に対応する既知のキーがデータベースに存在しません
GPGキーID: 4AEE18F83AFDEB23

ファイルの表示

@ -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));
} }