From c50bcca6cafcefc6f7b8b93b5df898f801997e07 Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Tue, 14 Dec 2021 17:27:00 -0800 Subject: [PATCH] Use Array.from() in $$ --- ajquery.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ajquery.js b/ajquery.js index d388f7f..0ad0405 100644 --- a/ajquery.js +++ b/ajquery.js @@ -3,5 +3,5 @@ function $(sel, el) { } function $$(sel, el) { - return (el || document).querySelectorAll(sel); + return Array.from((el || document).querySelectorAll(sel)); }