News for hackers. Stuff that matters.
Re:Bootstrap 5 will remove jQuery as a dependency by j79 on Tuesday February 12, 2019 @09:24PM (#19149807)
> PS. The other two answers here are outdated.

Sure, the other two answers may be "outdated" but they're still extremely useful if you're looking to calling map/filter/etc against your queried elements.

Re:Bootstrap 5 will remove jQuery as a dependency by runarberg on Wednesday February 13, 2019 @01:19AM (#19150890)
For that you can write:

    const elements = document.querySelectorAll('.some-class');
    const values = Array.prototype.map.call(elements, element => element.value);
or more idiomatically (and perhaps a little slower):

    const elements = [...document.querySelectorAll('.some-class')];
    const values = elements.map(element => element.value);
Re:Bootstrap 5 will remove jQuery as a dependency by nailer on Wednesday February 13, 2019 @03:44AM (#19151493)
They asked about looping, not mapping or filtering.