I often need to convert the result of a selector to an array of JQuery objects so that I can for..of on them, I end up doing a lot of:
const arr = $.makeArray($(selector)).map(el => $(el));
(I usually have a function doing this internally)
I then do things like:
for (let jel of arr) jel.toggle(false);
Does JQuery have a better/builtin way to create such arr ?